Files
trezor-suite/suite/e2e/tests/browser/ios.test.ts
2026-01-16 17:26:01 +01:00

24 lines
1022 B
TypeScript
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
import { devices } from '@playwright/test';
import { expect, test } from '../../support/fixtures';
const iosAria = `
- heading "Suite doesnt work on iOS yet" [level=1]
- paragraph: "Were working hard to bring the Trezor Suite mobile web app to iOS. In the meantime, you can use Trezor Suite on the following platforms:"
- list:
- listitem: Trezor Suite desktop app
- listitem: Trezor Suite for web
- listitem: Mobile web app for Chrome on Android
`;
test.use({ startEmulator: false, browserName: 'chromium', ...devices['iPhone 15 Pro'] });
test.describe('iPhone with Chrome browser', { tag: ['@webOnly', '@noDevice'] }, () => {
test('Suite does not support iOS', async ({ page }) => {
await expect(
page.getByRole('heading', { name: 'Suite doesnt work on iOS yet' }),
).toBeVisible();
await expect(page.locator('body')).toMatchAriaSnapshot(iosAria);
await expect(page.getByText('Continue at my own risk')).toBeHidden();
});
});