Skip to content

Commit b4d60db

Browse files
committed
Fix tests
1 parent 5d4ba03 commit b4d60db

2 files changed

Lines changed: 10 additions & 3 deletions

File tree

apps/twig/tests/e2e/tests/smoke.spec.ts

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,18 @@ test.describe("Smoke Tests", () => {
2727
.catch(() => false);
2828

2929
const hasMainLayout = await window
30-
.locator("text=Twig")
30+
.locator("text=New task")
3131
.first()
3232
.isVisible()
3333
.catch(() => false);
3434

35-
const isValidBootState = hasAuthScreen || hasMainLayout;
35+
const hasSettings = await window
36+
.locator("text=Settings")
37+
.first()
38+
.isVisible()
39+
.catch(() => false);
40+
41+
const isValidBootState = hasAuthScreen || hasMainLayout || hasSettings;
3642
expect(isValidBootState).toBe(true);
3743
});
3844

apps/twig/tests/e2e/tests/visual.spec.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@ test.describe("Visual Stability", () => {
1111
.waitFor({ state: "hidden", timeout: 30000 })
1212
.catch(() => {});
1313

14-
await window.waitForTimeout(1000);
14+
// Wait for the app to fully settle (animations, data loading, spinners)
15+
await window.waitForTimeout(5000);
1516

1617
const screenshot1 = await window.screenshot();
1718
const screenshot1Hash = (await Jimp.read(screenshot1)).hash();

0 commit comments

Comments
 (0)