Files
wanderer/web/tests/playwright/auth.teardown.ts
2026-02-01 21:02:36 +01:00

12 lines
406 B
TypeScript

import { test as teardown } from '@playwright/test';
teardown('delete user', async ({ page }) => {
await page.goto('/settings/account', { waitUntil: 'networkidle' });
await page.locator("#delete-account").click();
// Wait for modal to appear
await page.locator("#confirm").waitFor({ state: 'visible' });
await page.locator("#confirm").click();
await page.waitForURL('/');
});