Skip to content

Commit

Permalink
Onboarding: Fix vault-decryption-chrome.spec.js
Browse files Browse the repository at this point in the history
  • Loading branch information
darkwing committed Oct 10, 2024
1 parent 1bd1fa4 commit 7971e1b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion test/e2e/helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -552,9 +552,10 @@ const onboardingCompleteWalletCreation = async (driver) => {

const onboardingCompleteWalletCreationWithOptOut = async (driver) => {
// wait for h2 to appear
await driver.findElement({ text: 'Wallet creation successful', tag: 'h2' });
await driver.findElement({ text: 'Your wallet is ready', tag: 'h2' });
// opt-out from third party API
await driver.clickElement({ text: 'Manage default settings', tag: 'a' });
await driver.clickElement({ text: 'General', tag: 'p' });
await driver.clickElement(
'[data-testid="basic-functionality-toggle"] .toggle-button',
);
Expand All @@ -568,6 +569,9 @@ const onboardingCompleteWalletCreationWithOptOut = async (driver) => {
)
).map((toggle) => toggle.click()),
);
await driver.clickElement('[data-testid="category-back-button"]');
await driver.clickElement('[data-testid="privacy-settings-back-button"]');

// complete onboarding
await driver.clickElement({ text: 'Done', tag: 'button' });
};
Expand Down

0 comments on commit 7971e1b

Please sign in to comment.