fix(ci): e2e - fixtures copiees dans le container (docker cp) + 2 tests obsolètes mis a jour
- 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:
@@ -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 }) => {
|
||||
|
||||
Reference in New Issue
Block a user