Skip to content

fix flaky test with HMR console #287

fix flaky test with HMR console

fix flaky test with HMR console #287

Triggered via push October 30, 2024 18:26
Status Success
Total duration 2m 34s
Artifacts 1

test.yml

on: push
Fit to window
Zoom out
Zoom in

Annotations

10 errors, 1 warning, and 1 notice
[webkit] › basic.test.ts:8:7 › basic behavior › input props are forwarded: test/basic.test.ts#L4
1) [webkit] › basic.test.ts:8:7 › basic behavior › input props are forwarded ───────────────────── Test timeout of 5000ms exceeded while running "beforeEach" hook. 2 | 3 | test.describe('basic behavior', async () => { > 4 | test.beforeEach(async ({ page }) => { | ^ 5 | await page.goto('/') 6 | }) 7 | at /home/runner/work/cmdk/cmdk/test/basic.test.ts:4:8
[webkit] › basic.test.ts:8:7 › basic behavior › input props are forwarded: test/basic.test.ts#L1
1) [webkit] › basic.test.ts:8:7 › basic behavior › input props are forwarded ───────────────────── Error: browserContext.newPage: Test timeout of 5000ms exceeded.
[webkit] › basic.test.ts:59:7 › basic behavior › empty component renders when there are no results: test/basic.test.ts#L1
2) [webkit] › basic.test.ts:59:7 › basic behavior › empty component renders when there are no results Test timeout of 5000ms exceeded.
[webkit] › basic.test.ts:59:7 › basic behavior › empty component renders when there are no results: test/basic.test.ts#L62
2) [webkit] › basic.test.ts:59:7 › basic behavior › empty component renders when there are no results Error: expect(locator).toHaveCount(expected) Locator: locator('[cmdk-item]') Expected: 0 Received: 2 Call log: - expect.toHaveCount with timeout 5000ms - waiting for locator('[cmdk-item]') - locator resolved to 2 elements - unexpected value "2" - locator resolved to 2 elements - unexpected value "2" - locator resolved to 2 elements - unexpected value "2" - locator resolved to 2 elements - unexpected value "2" - locator resolved to 2 elements - unexpected value "2" - locator resolved to 2 elements - unexpected value "2" - locator resolved to 2 elements - unexpected value "2" - locator resolved to 2 elements - unexpected value "2" 60 | const input = page.locator('[cmdk-input]') 61 | await input.type('z') > 62 | await expect(page.locator(`[cmdk-item]`)).toHaveCount(0) | ^ 63 | await expect(page.locator(`[cmdk-empty]`)).toHaveText('No results.') 64 | }) 65 | at /home/runner/work/cmdk/cmdk/test/basic.test.ts:62:47
[webkit] › dialog.test.ts:8:7 › dialog › dialog renders in portal: test/dialog.test.ts#L4
3) [webkit] › dialog.test.ts:8:7 › dialog › dialog renders in portal ───────────────────────────── Test timeout of 5000ms exceeded while running "beforeEach" hook. 2 | 3 | test.describe('dialog', async () => { > 4 | test.beforeEach(async ({ page }) => { | ^ 5 | await page.goto('/dialog') 6 | }) 7 | at /home/runner/work/cmdk/cmdk/test/dialog.test.ts:4:8
[webkit] › dialog.test.ts:8:7 › dialog › dialog renders in portal: test/dialog.test.ts#L1
3) [webkit] › dialog.test.ts:8:7 › dialog › dialog renders in portal ───────────────────────────── Error: browserContext.newPage: Test timeout of 5000ms exceeded.
[webkit] › item.test.ts:63:7 › item advanced › re-rendering re-matches implicit textContent value: test/item.test.ts#L1
4) [webkit] › item.test.ts:63:7 › item advanced › re-rendering re-matches implicit textContent value Test timeout of 5000ms exceeded.
[webkit] › item.test.ts:63:7 › item advanced › re-rendering re-matches implicit textContent value: test/item.test.ts#L68
4) [webkit] › item.test.ts:63:7 › item advanced › re-rendering re-matches implicit textContent value Error: expect(locator).toHaveCount(expected) Locator: locator('[cmdk-item]') Expected: 0 Received: 2 Call log: - expect.toHaveCount with timeout 5000ms - waiting for locator('[cmdk-item]') - locator resolved to 2 elements - unexpected value "2" - locator resolved to 2 elements - unexpected value "2" - locator resolved to 2 elements - unexpected value "2" - locator resolved to 2 elements - unexpected value "2" - locator resolved to 2 elements - unexpected value "2" - locator resolved to 2 elements - unexpected value "2" - locator resolved to 2 elements - unexpected value "2" - locator resolved to 2 elements - unexpected value "2" 66 | const button = page.locator(`data-testid=increment`) 67 | await button.click() > 68 | await expect(page.locator(`[cmdk-item]`)).toHaveCount(0) | ^ 69 | await button.click() 70 | await expect(page.locator(`[cmdk-item]`)).toHaveCount(2) 71 | }) at /home/runner/work/cmdk/cmdk/test/item.test.ts:68:47
[webkit] › keybind.test.ts:110:7 › no-vim keybinds › ctrl j/k does nothing: test/keybind.test.ts#L1
5) [webkit] › keybind.test.ts:110:7 › no-vim keybinds › ctrl j/k does nothing ──────────────────── Test timeout of 5000ms exceeded.
[webkit] › keybind.test.ts:110:7 › no-vim keybinds › ctrl j/k does nothing: test/keybind.test.ts#L113
5) [webkit] › keybind.test.ts:110:7 › no-vim keybinds › ctrl j/k does nothing ──────────────────── Error: expect(locator).toHaveAttribute(expected) Locator: locator('[cmdk-item][aria-selected="true"]') Expected string: "first" Received string: "A" Call log: - expect.toHaveAttribute with timeout 5000ms - waiting for locator('[cmdk-item][aria-selected="true"]') - locator resolved to <div cmdk-item="" role="option" data-value="A" id="ra…>A</div> - unexpected value "A" - locator resolved to <div cmdk-item="" role="option" data-value="A" id="ra…>A</div> - unexpected value "A" - locator resolved to <div cmdk-item="" role="option" data-value="A" id="ra…>A</div> - unexpected value "A" - locator resolved to <div cmdk-item="" role="option" data-value="A" id="ra…>A</div> - unexpected value "A" - locator resolved to <div cmdk-item="" role="option" data-value="A" id="ra…>A</div> - unexpected value "A" - locator resolved to <div cmdk-item="" role="option" data-value="A" id="ra…>A</div> - unexpected value "A" - locator resolved to <div cmdk-item="" role="option" data-value="A" id="ra…>A</div> - unexpected value "A" - locator resolved to <div cmdk-item="" role="option" data-value="A" id="ra…>A</div> - unexpected value "A" 111 | await expect(page.locator(`[cmdk-item][aria-selected="true"]`)).toHaveAttribute('data-value', 'first') 112 | await page.locator(`[cmdk-input]`).press('Control+j') > 113 | await expect(page.locator(`[cmdk-item][aria-selected="true"]`)).toHaveAttribute('data-value', 'first') | ^ 114 | await page.locator(`[cmdk-input]`).press('Control+k') 115 | await expect(page.locator(`[cmdk-item][aria-selected="true"]`)).toHaveAttribute('data-value', 'first') 116 | }) at /home/runner/work/cmdk/cmdk/test/keybind.test.ts:113:69
Slow Test: [webkit] › basic.test.ts#L1
[webkit] › basic.test.ts took 20.5s
🎭 Playwright Run Summary
5 flaky [webkit] › basic.test.ts:8:7 › basic behavior › input props are forwarded ────────────────────── [webkit] › basic.test.ts:59:7 › basic behavior › empty component renders when there are no results [webkit] › dialog.test.ts:8:7 › dialog › dialog renders in portal ────────────────────────────── [webkit] › item.test.ts:63:7 › item advanced › re-rendering re-matches implicit textContent value [webkit] › keybind.test.ts:110:7 › no-vim keybinds › ctrl j/k does nothing ───────────────────── 36 passed (48.6s)

Artifacts

Produced during runtime
Name Size
playwright-report
5.11 KB