mirror of
https://github.com/tompro/sattle.git
synced 2026-08-27 07:15:59 +00:00
test: playwright e2e setup with onboarding, navigation and receive specs
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
import { test, expect } from '../fixtures';
|
||||
|
||||
test.describe('Navigation', () => {
|
||||
test('hamburger opens Settings and the back button returns to the main page', async ({
|
||||
page,
|
||||
}) => {
|
||||
// fresh device: the main page shows the welcome card
|
||||
await page.goto('/');
|
||||
await expect(page.getByText('Welcome to sattle')).toBeVisible();
|
||||
|
||||
await page.getByRole('button', { name: 'Settings' }).click();
|
||||
await expect(page).toHaveURL(/#\/settings$/);
|
||||
await expect(page.getByText('Settings', { exact: true })).toBeVisible();
|
||||
|
||||
await page.getByRole('button', { name: 'Back' }).click();
|
||||
await expect(page).toHaveURL(/#\/$/);
|
||||
await expect(page.getByText('Welcome to sattle')).toBeVisible();
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user