mirror of
https://github.com/zadam/trilium.git
synced 2025-11-12 16:25:51 +01:00
test(server/e2e): add more assertions to try to avoid flaky test
This commit is contained in:
@@ -73,6 +73,9 @@ test("Tabs are restored in right order", async ({ page, context }) => {
|
||||
// Select the mid one.
|
||||
await app.getTab(1).click();
|
||||
await expect(app.noteTreeActiveNote).toContainText("Text notes");
|
||||
await expect(app.getTab(0)).toContainText("Code notes");
|
||||
await expect(app.getTab(1)).toContainText("Text notes");
|
||||
await expect(app.getTab(2)).toContainText("Mermaid");
|
||||
|
||||
// Refresh the page and check the order.
|
||||
await app.goto( { preserveTabs: true });
|
||||
|
||||
Reference in New Issue
Block a user