Skip to content

Commit

Permalink
iterate over checkboxes to check each
Browse files Browse the repository at this point in the history
  • Loading branch information
aaemnnosttv committed Sep 26, 2019
1 parent 600b225 commit abfe387
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/e2e/utils/deactivate-utility-plugins.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ export async function deactivateUtilityPlugins() {
}

// Check the boxes of plugins to deactivate.
await page.$$eval( '.active[data-plugin^="google-site-kit-test-plugins/"] input[type="checkbox"]', ( checkbox ) => {
checkbox.checked = true;
await page.$$eval( '.active[data-plugin^="google-site-kit-test-plugins/"] input[type="checkbox"]', ( checkboxes ) => {
checkboxes.forEach( ( checkbox ) => checkbox.checked = true );
} );

// Bulk deactivate
Expand Down

0 comments on commit abfe387

Please sign in to comment.