mirror of
https://github.com/trezor/trezor-suite.git
synced 2026-03-13 02:38:15 +01:00
24 lines
1022 B
TypeScript
24 lines
1022 B
TypeScript
import { devices } from '@playwright/test';
|
||
|
||
import { expect, test } from '../../support/fixtures';
|
||
|
||
const iosAria = `
|
||
- heading "Suite doesn’t work on iOS yet" [level=1]
|
||
- paragraph: "We’re 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 doesn’t work on iOS yet' }),
|
||
).toBeVisible();
|
||
await expect(page.locator('body')).toMatchAriaSnapshot(iosAria);
|
||
await expect(page.getByText('Continue at my own risk')).toBeHidden();
|
||
});
|
||
});
|