Skip to content

Commit

Permalink
Fix tests from shopper-multi-currency-widget.spec.js.
Browse files Browse the repository at this point in the history
  • Loading branch information
alopezari committed Jan 10, 2025
1 parent c472dbe commit 6a79190
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion tests/e2e/utils/flows.js
Original file line number Diff line number Diff line change
Expand Up @@ -934,6 +934,8 @@ export const merchantWCP = {
waitUntil: 'load',
} );

await page.waitForTimeout( 2000 );

const closeWelcomeModal = await page.$( 'button[aria-label="Close"]' );
if ( closeWelcomeModal ) {
await closeWelcomeModal.click();
Expand All @@ -948,7 +950,7 @@ export const merchantWCP = {
const searchInput = await page.waitForSelector(
'input[placeholder="Search"]'
);
searchInput.type( 'switcher', { delay: 20 } );
await searchInput.type( 'switcher', { delay: 20 } );

await page.waitForSelector(
'button.components-button[role="option"]',
Expand Down Expand Up @@ -980,6 +982,9 @@ export const merchantWCP = {
'select[name="item_id"]'
);
await selectItem.click();
await page.click(
'.widefat > tbody:nth-child(2) > tr:nth-child(1) > td:nth-child(1) > span:nth-child(2) > span:nth-child(1) > span:nth-child(1)'
);
const dropdownInput = await page.waitForSelector(
'.select2-search--dropdown > input'
);
Expand Down

0 comments on commit 6a79190

Please sign in to comment.