test: playwright e2e setup with onboarding, navigation and receive specs

This commit is contained in:
2026-08-19 21:36:48 +02:00
parent 1839700215
commit 05fc40263b
12 changed files with 342 additions and 1 deletions
+19
View File
@@ -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();
});
});