fix(e2e): reset panes - assertion stricte sur l ouverture du palette (diagnostic)
This commit is contained in:
@@ -300,12 +300,12 @@ test.describe('Split View — Persistence', () => {
|
|||||||
// Type ">réinitialiser" (le préfixe '>' cherche une COMMANDE,
|
// Type ">réinitialiser" (le préfixe '>' cherche une COMMANDE,
|
||||||
// sinon le palette cherche des fichiers et ne trouve pas la commande)
|
// sinon le palette cherche des fichiers et ne trouve pas la commande)
|
||||||
const input = page.locator('#cp-input');
|
const input = page.locator('#cp-input');
|
||||||
if (await input.isVisible()) {
|
// Strict : le palette DOIT s'ouvrir avec Ctrl+Shift+Space
|
||||||
await input.fill('>réinitialiser');
|
await expect(input).toBeVisible({ timeout: 3000 });
|
||||||
// Attendre le rendu de la liste filtrée (debounce 150ms du palette)
|
await input.fill('>réinitialiser');
|
||||||
await page.waitForSelector('.cp-item', { timeout: 3000 });
|
// Attendre le rendu de la liste filtrée (debounce 150ms du palette)
|
||||||
await page.keyboard.press('Enter');
|
await page.waitForSelector('.cp-item', { timeout: 3000 });
|
||||||
}
|
await page.keyboard.press('Enter');
|
||||||
|
|
||||||
// localStorage should be cleared
|
// localStorage should be cleared
|
||||||
const cleared = await page.evaluate(() => localStorage.getItem('obsigate-panes'));
|
const cleared = await page.evaluate(() => localStorage.getItem('obsigate-panes'));
|
||||||
|
|||||||
Reference in New Issue
Block a user