fix(e2e): split-view - openFile ouvre via l arbre sidebar (TabManager/onglets)
CI / lint (push) Successful in 28s
CI / security (push) Successful in 21s
CI / test (push) Successful in 34s
CI / build (push) Successful in 12s
CI / e2e (push) Failing after 9m25s

- le deep-link #file= ouvre l ancien viewer sans onglets (#tab-bar absent)

- le clic sur un tree-item passe par TabManager.openPreview/openPersistent
This commit is contained in:
2026-08-24 20:47:35 -04:00
parent 37b059aa82
commit 4505fe77c4
+11 -2
View File
@@ -32,8 +32,17 @@ async function login(page) {
}
async function openFile(page, vault, filePath) {
// Deep-link supporté par l'app : #file=Vault:Path (lu à l'initialisation)
await page.goto(`/#file=${encodeURIComponent(vault)}:${encodeURIComponent(filePath)}`);
// Ouvre via l'arbre sidebar : le clic passe par TabManager (système d'onglets).
// Le deep-link #file= ouvre l'ancien viewer sans onglets — inutilisable ici.
await page.goto('/');
await page.waitForTimeout(300);
const vaultItem = page.locator(`.vault-item[data-vault="${vault}"]`);
if (await vaultItem.count() > 0) {
await vaultItem.click();
await page.waitForTimeout(700);
}
const treeItem = page.locator(`.tree-item[data-vault="${vault}"][data-path="${filePath}"]`);
await treeItem.click({ timeout: 5000 });
await page.waitForTimeout(500);
}