-
-
Notifications
You must be signed in to change notification settings - Fork 276
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8ea300f
commit b8e04c5
Showing
2 changed files
with
29 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
49 changes: 27 additions & 22 deletions
49
packages/suite-desktop-core/e2e/tests/onboarding/analytics-consent.test.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,32 @@ | ||
import { expect, test } from '../../support/fixtures'; | ||
|
||
test.describe('Onboarding - analytics consent', { tag: ['@group=device-management'] }, () => { | ||
test.beforeEach(async ({ onboardingPage }) => { | ||
await onboardingPage.disableFirmwareHashCheck(); | ||
}); | ||
test.describe( | ||
'Onboarding - analytics consent', | ||
{ tag: ['@group=device-management', '@webOnly'] }, | ||
() => { | ||
test.beforeEach(async ({ onboardingPage }) => { | ||
await onboardingPage.disableFirmwareHashCheck(); | ||
}); | ||
|
||
test('analytics consent appears on any route that is visited initially. this time /accounts', async ({ | ||
page, | ||
analyticsPage, | ||
onboardingPage, | ||
}) => { | ||
await page.goto('/accounts'); | ||
await expect(analyticsPage.heading).toBeVisible(); | ||
await analyticsPage.continueButton.click(); | ||
await page.getByTestId('@onboarding/exit-app-button').click(); | ||
test('analytics consent appears on any route that is visited initially. this time /accounts', async ({ | ||
page, | ||
analyticsPage, | ||
onboardingPage, | ||
}) => { | ||
await page.goto('/accounts'); | ||
await expect(analyticsPage.heading).toBeVisible(); | ||
await analyticsPage.continueButton.click(); | ||
await page.getByTestId('@onboarding/exit-app-button').click(); | ||
|
||
if (onboardingPage.isModelWithSecureElement()) { | ||
await onboardingPage.passThroughAuthenticityCheck(); | ||
} | ||
if (onboardingPage.isModelWithSecureElement()) { | ||
await onboardingPage.passThroughAuthenticityCheck(); | ||
await onboardingPage.optionallyDismissFwHashCheckError(); | ||
} | ||
|
||
await onboardingPage.onboardingViewOnlyEnableButton.click(); | ||
await expect(page.getByTestId('@suite-layout/body')).toBeVisible(); | ||
await page.getByTestId('@account-menu/btc/normal/0').click(); | ||
await expect(page.getByTestId('@wallet/menu/wallet-send')).toBeVisible(); | ||
}); | ||
}); | ||
await onboardingPage.onboardingViewOnlyEnableButton.click(); | ||
await expect(page.getByTestId('@suite-layout/body')).toBeVisible(); | ||
await page.getByTestId('@account-menu/btc/normal/0').click(); | ||
await expect(page.getByTestId('@wallet/menu/wallet-send')).toBeVisible(); | ||
}); | ||
}, | ||
); |