diff --git a/frontend/e2e/periods.spec.ts b/frontend/e2e/periods.spec.ts index 32e7d23..4c5e5bf 100644 --- a/frontend/e2e/periods.spec.ts +++ b/frontend/e2e/periods.spec.ts @@ -81,7 +81,7 @@ test.describe('Periods Management (Story 2.3)', () => { await page.goto(`${ALPHA_URL}/admin/academic-year/periods`); const tabs = page.getByRole('tab'); - await expect(tabs).toHaveCount(3); + await expect(tabs).toHaveCount(3, { timeout: 10000 }); }); test('current year tab is active by default', async ({ page }) => { diff --git a/frontend/e2e/user-blocking.spec.ts b/frontend/e2e/user-blocking.spec.ts index 9cfaca3..b310a02 100644 --- a/frontend/e2e/user-blocking.spec.ts +++ b/frontend/e2e/user-blocking.spec.ts @@ -25,13 +25,16 @@ test.describe('User Blocking', () => { function clearCache() { const projectRoot = join(__dirname, '../..'); const composeFile = join(projectRoot, 'compose.yaml'); - try { - execSync( - `docker compose -f "${composeFile}" exec -T php php bin/console cache:pool:clear paginated_queries.cache 2>&1`, - { encoding: 'utf-8' } - ); - } catch { - // Cache pool may not exist in all environments + const pools = ['paginated_queries.cache', 'users.cache']; + for (const pool of pools) { + try { + execSync( + `docker compose -f "${composeFile}" exec -T php php bin/console cache:pool:clear ${pool} 2>&1`, + { encoding: 'utf-8' } + ); + } catch { + // Cache pool may not exist in all environments + } } }