Skip to content

Commit 22ff031

Browse files
committed
fix: replace toBe(true) with idiomatic toBeVisible() auto-waiting assertion
1 parent 7938746 commit 22ff031

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

e2e/onboarding-and-polish.spec.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,7 @@ test.describe('Error Handling', () => {
2222
const bodyText = await page.evaluate(() => document.body.innerText);
2323
expect(bodyText.length).toBeGreaterThan(100);
2424
await page.keyboard.press('2');
25-
await page.waitForTimeout(500);
26-
const graphVisible = await page.locator('.graph-container').isVisible();
27-
expect(graphVisible).toBe(true);
25+
await expect(page.locator('.graph-container')).toBeVisible({ timeout: 5000 });
2826
});
2927

3028
test('app handles database switch without crashing', async ({ page }) => {

0 commit comments

Comments
 (0)