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
+12
View File
@@ -0,0 +1,12 @@
import type { Page } from '@playwright/test';
// Drives onboarding end to end on a fresh browser context: /#/welcome ->
// "Create wallet" (empty password = stored unencrypted) -> confirm the
// recovery phrase -> lands unlocked on /#/ with a 0-sats balance.
export const createFreshWallet = async (page: Page): Promise<void> => {
await page.goto('/#/welcome');
await page.getByRole('button', { name: 'Create wallet' }).click();
await page.locator('.q-checkbox', { hasText: 'I wrote it down' }).click();
await page.getByRole('button', { name: 'Continue' }).click();
await page.waitForURL(/#\/$/);
};