Skip to content

Commit

Permalink
Revert to click
Browse files Browse the repository at this point in the history
  • Loading branch information
Mamaduka committed Mar 25, 2022
1 parent b266ab1 commit bb41ca5
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions packages/e2e-tests/specs/site-editor/style-variations.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,13 @@ async function getAvailableStyleVariations() {
return page.$$( VARIATION_ITEMS_STYLES_SELECTOR );
}

async function applyVariation( title ) {
async function applyVariation( label ) {
await toggleGlobalStyles();
await openOtherStyles();
const variation = await await page.waitForXPath(
`//*[@role="button"][@aria-label="${ title }"]`
`//*[@role="button"][@aria-label="${ label }"]`
);
await variation.focus();
await page.keyboard.press( 'Enter' );
await variation.click();
}

async function applyPinkVariation() {
Expand Down

0 comments on commit bb41ca5

Please sign in to comment.