Skip to content

Commit f30057c

Browse files
committed
fix: replaced expect with expect.poll
1 parent 8d581d0 commit f30057c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/core/__tests__/e2e/vite.spec.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ test.describe('Zero-UI Vite Integration', () => {
2020

2121

2222
// 2️⃣ Assert initial state
23-
await expect(body).toHaveAttribute(attr, 'light');
24-
await expect(button).toBeVisible((console.log(`✅ ${button} is visible`))); // auto-retries until true
23+
await expect.poll(() => body.getAttribute(attr)).toBe('light', (console.log(`✅ ${body} has data-theme ${attr} is light`)));
24+
await expect.poll(() => button.isVisible()).toBe(true, (console.log(`✅ ${button} is visible`))); // auto-retries until true
2525

2626

2727
// 3️⃣ Action

0 commit comments

Comments
 (0)