fix: Corriger les tests E2E de blocage utilisateur qui échouent de manière intermittente
Sur Firefox, l'hydration Svelte peut prendre plus de temps que sur Chromium. L'assertion tabs.nth(1).toHaveAttribute manquait de timeout dans periods.spec.ts, et le formulaire de login n'était pas complètement hydraté avant interaction dans admin-responsive-nav.spec.ts.
This commit is contained in:
@@ -27,6 +27,7 @@ test.describe('Admin Responsive Navigation', () => {
|
||||
|
||||
async function loginAsAdmin(page: import('@playwright/test').Page) {
|
||||
await page.goto(`${ALPHA_URL}/login`);
|
||||
await page.waitForLoadState('networkidle');
|
||||
await page.locator('#email').fill(ADMIN_EMAIL);
|
||||
await page.locator('#password').fill(ADMIN_PASSWORD);
|
||||
await Promise.all([
|
||||
|
||||
Reference in New Issue
Block a user