Skip to content

Commit

Permalink
fix(e2e): Fixed url in desktop test
Browse files Browse the repository at this point in the history
  • Loading branch information
HajekOndrej committed Feb 7, 2025
1 parent 8ea300f commit b8e04c5
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 24 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/test-suite-web-e2e-pw.yml
Original file line number Diff line number Diff line change
Expand Up @@ -104,8 +104,8 @@ jobs:
include:
- TEST_GROUP: "@group=suite"
CONTAINERS: "trezor-user-env-unix"
# - TEST_GROUP: "@group=device-management" # Disabled because there are no webOnly tests in this group
# CONTAINERS: "trezor-user-env-unix"
- TEST_GROUP: "@group=device-management"
CONTAINERS: "trezor-user-env-unix"
- TEST_GROUP: "@group=settings"
CONTAINERS: "trezor-user-env-unix"
- TEST_GROUP: "@group=metadata1"
Expand Down
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();
});
},
);

0 comments on commit b8e04c5

Please sign in to comment.