We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8d581d0 commit f30057cCopy full SHA for f30057c
packages/core/__tests__/e2e/vite.spec.js
@@ -20,8 +20,8 @@ test.describe('Zero-UI Vite Integration', () => {
20
21
22
// 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
+ await expect.poll(() => body.getAttribute(attr)).toBe('light', (console.log(`✅ ${body} has data-theme ${attr} is light`)));
+ await expect.poll(() => button.isVisible()).toBe(true, (console.log(`✅ ${button} is visible`))); // auto-retries until true
25
26
27
// 3️⃣ Action
0 commit comments