Skip to content

Commit

Permalink
Wait for animation stop
Browse files Browse the repository at this point in the history
  • Loading branch information
darkwing committed Oct 18, 2024
1 parent a9b3601 commit 26d17d0
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions test/e2e/tests/privacy/basic-functionality.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -146,10 +146,20 @@ describe('MetaMask onboarding @no-mmi', function () {
tag: 'button',
});
await driver.clickElement('[data-testid="category-item-General"]');
// Wait until the onboarding carousel has stopped moving
// otherwise the click has no effect.
await driver.waitForElementToStopMoving(
'[data-testid="category-back-button"]',
);
await driver.clickElement('[data-testid="category-back-button"]');
await driver.clickElement(
'[data-testid="privacy-settings-back-button"]',
);
// Wait until the onboarding carousel has stopped moving
// otherwise the click has no effect.
await driver.waitForElementToStopMoving(
'[data-testid="privacy-settings-back-button"]',
);
await driver.clickElement({ text: 'Done', tag: 'button' });
await driver.clickElement('[data-testid="pin-extension-next"]');
await driver.clickElement({ text: 'Done', tag: 'button' });
Expand Down

0 comments on commit 26d17d0

Please sign in to comment.