Skip to content

fix all tests

fix all tests #209

Triggered via push February 6, 2024 04:30
Status Failure
Total duration 1m 41s
Artifacts 1

test.yml

on: push
Fit to window
Zoom out
Zoom in

Annotations

10 errors, 2 warnings, and 1 notice
[webkit] › item.test.ts:63:7 › item advanced › re-rendering re-matches implicit textContent value: test/item.test.ts#L1
1) [webkit] › item.test.ts:63:7 › item advanced › re-rendering re-matches implicit textContent value Test timeout of 1000ms exceeded.
[webkit] › item.test.ts:63:7 › item advanced › re-rendering re-matches implicit textContent value: test/item.test.ts#L67
1) [webkit] › item.test.ts:63:7 › item advanced › re-rendering re-matches implicit textContent value Error: locator.click: Test timeout of 1000ms exceeded. Call log: - waiting for locator('data-testid=increment') - locator resolved to <button data-testid="increment">Increment count</button> 65 | await page.locator(`[cmdk-input]`).type('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) at /home/runner/work/cmdk/cmdk/test/item.test.ts:67:18
[webkit] › item.test.ts:63:7 › item advanced › re-rendering re-matches implicit textContent value: test/item.test.ts#L1
1) [webkit] › item.test.ts:63:7 › item advanced › re-rendering re-matches implicit textContent value Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── Test timeout of 1000ms exceeded.
[webkit] › item.test.ts:63:7 › item advanced › re-rendering re-matches implicit textContent value: test/item.test.ts#L64
1) [webkit] › item.test.ts:63:7 › item advanced › re-rendering re-matches implicit textContent value Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── Error: expect(locator).toHaveCount(expected) Locator: locator('[cmdk-item]') Expected: 2 Received: undefined Call log: - expect.toHaveCount with timeout 5000ms - waiting for locator('[cmdk-item]') 62 | 63 | test('re-rendering re-matches implicit textContent value', async ({ page }) => { > 64 | await expect(page.locator(`[cmdk-item]`)).toHaveCount(2) | ^ 65 | await page.locator(`[cmdk-input]`).type('2') 66 | const button = page.locator(`data-testid=increment`) 67 | await button.click() at /home/runner/work/cmdk/cmdk/test/item.test.ts:64:47
[webkit] › item.test.ts:63:7 › item advanced › re-rendering re-matches implicit textContent value: test/item.test.ts#L1
1) [webkit] › item.test.ts:63:7 › item advanced › re-rendering re-matches implicit textContent value Retry #2 ─────────────────────────────────────────────────────────────────────────────────────── Test timeout of 1000ms exceeded.
[webkit] › item.test.ts:63:7 › item advanced › re-rendering re-matches implicit textContent value: test/item.test.ts#L67
1) [webkit] › item.test.ts:63:7 › item advanced › re-rendering re-matches implicit textContent value Retry #2 ─────────────────────────────────────────────────────────────────────────────────────── Error: locator.click: Test timeout of 1000ms exceeded. Call log: - waiting for locator('data-testid=increment') - locator resolved to <button data-testid="increment">Increment count</button> - attempting click action - waiting for element to be visible, enabled and stable - element is visible, enabled and stable - scrolling into view if needed 65 | await page.locator(`[cmdk-input]`).type('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) at /home/runner/work/cmdk/cmdk/test/item.test.ts:67:18
[webkit] › basic.test.ts:8:7 › basic behavior › input props are forwarded: test/basic.test.ts#L4
2) [webkit] › basic.test.ts:8:7 › basic behavior › input props are forwarded ───────────────────── Test timeout of 1000ms 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#L5
2) [webkit] › basic.test.ts:8:7 › basic behavior › input props are forwarded ───────────────────── Error: page.goto: Test timeout of 1000ms exceeded. Call log: - navigating to "http://localhost:3000/", waiting until "load" 3 | test.describe('basic behavior', async () => { 4 | test.beforeEach(async ({ page }) => { > 5 | await page.goto('/') | ^ 6 | }) 7 | 8 | test('input props are forwarded', async ({ page }) => { at /home/runner/work/cmdk/cmdk/test/basic.test.ts:5:16
[webkit] › basic.test.ts:8:7 › basic behavior › input props are forwarded: test/basic.test.ts#L4
2) [webkit] › basic.test.ts:8:7 › basic behavior › input props are forwarded ───────────────────── Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── Test timeout of 1000ms 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
2) [webkit] › basic.test.ts:8:7 › basic behavior › input props are forwarded ───────────────────── Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── Error: browserContext.newPage: Test ended.
test
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, pnpm/action-setup@v2, actions/setup-node@v3, actions/upload-artifact@v2. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
test
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/upload-artifact@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
🎭 Playwright Run Summary
1 failed [webkit] › item.test.ts:63:7 › item advanced › re-rendering re-matches implicit textContent value 5 flaky [webkit] › basic.test.ts:8:7 › basic behavior › input props are forwarded ────────────────────── [webkit] › dialog.test.ts:8:7 › dialog › dialog renders in portal ────────────────────────────── [webkit] › keybind.test.ts:8:7 › arrow keybinds › arrow up/down changes selected item ────────── [webkit] › keybind.test.ts:118:7 › no-vim keybinds › ctrl n/p does nothing ───────────────────── [webkit] › numeric.test.ts:8:7 › behavior for numeric values › items filter correctly on numeric inputs 35 passed (38.3s)

Artifacts

Produced during runtime
Name Size
playwright-report Expired
75.2 KB