fix(ci): e2e - fixtures copiees dans le container (docker cp) + 2 tests obsolètes mis a jour
CI / lint (push) Successful in 27s
CI / security (push) Successful in 18s
CI / test (push) Successful in 34s
CI / build (push) Successful in 12s
CI / e2e (push) Failing after 24m15s

- ci.yml e2e : les bind mounts C:\dev\git\python\ObsiGate sont vides en docker-in-docker (chemin du job container inexistant sur l hote) -> docker create + docker cp des fixtures + docker start

- obsigate.spec.ts : placeholder de recherche attendu mis a jour (Rechercher dans toutes les vaults...)

- obsigate.spec.ts : theme par defaut accepte defaut-obsigate (moteur themes.js) en plus de dark (ui.js legacy)
This commit is contained in:
2026-08-24 19:37:30 -04:00
parent 62eabb2944
commit b812afabbc
2 changed files with 14 additions and 7 deletions
+4 -3
View File
@@ -73,7 +73,7 @@ test.describe('Dashboard & Navigation', () => {
test('should show search bar in header', async ({ page }) => {
await goHome(page);
await expect(page.locator('#search-input')).toBeVisible();
await expect(page.locator('#search-input')).toHaveAttribute('placeholder', 'Rechercher ...');
await expect(page.locator('#search-input')).toHaveAttribute('placeholder', 'Rechercher dans toutes les vaults...');
});
test('should show floating results bar when searching', async ({ page }) => {
@@ -386,8 +386,9 @@ test.describe('Dark Mode', () => {
await goHome(page);
const html = page.locator('html');
const theme = await html.getAttribute('data-theme');
// Should default to dark
expect(theme).toBe('dark');
// Le thème par défaut est sombre : 'dark' (ui.js legacy) ou
// 'defaut-obsigate' (moteur de thèmes themes.js, mode dark par défaut)
expect(['dark', 'defaut-obsigate']).toContain(theme);
});
test('should toggle theme and persist', async ({ page }) => {