Fix use-sync-external-store import #328
Merged
Annotations
10 errors, 2 warnings, and 1 notice
Run pnpm test || exit 1:
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
|
Run pnpm test || exit 1:
test/basic.test.ts#L5
1) [webkit] › basic.test.ts:8:7 › basic behavior › input props are forwarded ─────────────────────
Error: page.goto: Test timeout of 5000ms 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
|
Run pnpm test || exit 1:
test/basic.test.ts#L1
2) [webkit] › basic.test.ts:34:7 › basic behavior › first item is selected when search changes ───
Test timeout of 5000ms exceeded.
|
Run pnpm test || exit 1:
test/basic.test.ts#L38
2) [webkit] › basic.test.ts:34:7 › basic behavior › first item is selected when search changes ───
Error: expect(locator).toHaveText(expected)
Locator: locator('[cmdk-item][aria-selected="true"]')
Expected string: "Value"
Received string: "Item"
Call log:
- expect.toHaveText with timeout 5000ms
- waiting for locator('[cmdk-item][aria-selected="true"]')
- locator resolved to <div class="item" cmdk-item="" role="option" id="radi…>Item</div>
- unexpected value "Item"
- locator resolved to <div class="item" cmdk-item="" role="option" id="radi…>Item</div>
- unexpected value "Item"
- locator resolved to <div class="item" cmdk-item="" role="option" id="radi…>Item</div>
- unexpected value "Item"
- locator resolved to <div class="item" cmdk-item="" role="option" id="radi…>Item</div>
- unexpected value "Item"
- locator resolved to <div class="item" cmdk-item="" role="option" id="radi…>Item</div>
- unexpected value "Item"
- locator resolved to <div class="item" cmdk-item="" role="option" id="radi…>Item</div>
- unexpected value "Item"
36 | await input.type('x')
37 | const selected = page.locator(`[cmdk-item][aria-selected="true"]`)
> 38 | await expect(selected).toHaveText('Value')
| ^
39 | })
40 |
41 | test('items filter when searching', async ({ page }) => {
at /home/runner/work/cmdk/cmdk/test/basic.test.ts:38:28
|
Run pnpm test || exit 1:
test/dialog.test.ts#L1
3) [webkit] › dialog.test.ts:8:7 › dialog › dialog renders in portal ─────────────────────────────
Test timeout of 5000ms exceeded.
|
Run pnpm test || exit 1:
test/dialog.test.ts#L9
3) [webkit] › dialog.test.ts:8:7 › dialog › dialog renders in portal ─────────────────────────────
Error: expect(locator).toHaveCount(expected)
Locator: locator('[cmdk-dialog]')
Expected: 1
Received: 0
Call log:
- expect.toHaveCount with timeout 5000ms
- waiting for locator('[cmdk-dialog]')
- locator resolved to 0 elements
- unexpected value "0"
- locator resolved to 0 elements
- unexpected value "0"
- locator resolved to 0 elements
- unexpected value "0"
7 |
8 | test('dialog renders in portal', async ({ page }) => {
> 9 | await expect(page.locator(`[cmdk-dialog]`)).toHaveCount(1)
| ^
10 | await expect(page.locator(`[cmdk-overlay]`)).toHaveCount(1)
11 | })
12 | })
at /home/runner/work/cmdk/cmdk/test/dialog.test.ts:9:49
|
Run pnpm test || exit 1:
test/item.test.ts#L1
4) [webkit] › item.test.ts:8:7 › item › mounted item matches search ──────────────────────────────
Test timeout of 5000ms exceeded.
|
Run pnpm test || exit 1:
test/item.test.ts#L10
4) [webkit] › item.test.ts:8:7 › item › mounted item matches search ──────────────────────────────
Error: expect(locator).toHaveCount(expected)
Locator: locator('[cmdk-item]')
Expected: 0
Received: 1
Call log:
- expect.toHaveCount with timeout 5000ms
- waiting for locator('[cmdk-item]')
- locator resolved to 1 element
- unexpected value "1"
- locator resolved to 1 element
- unexpected value "1"
- locator resolved to 1 element
- unexpected value "1"
- locator resolved to 1 element
- unexpected value "1"
- locator resolved to 1 element
- unexpected value "1"
- locator resolved to 1 element
- unexpected value "1"
- locator resolved to 1 element
- unexpected value "1"
- locator resolved to 1 element
- unexpected value "1"
8 | test('mounted item matches search', async ({ page }) => {
9 | await page.locator(`[cmdk-input]`).type('b')
> 10 | await expect(page.locator(`[cmdk-item]`)).toHaveCount(0)
| ^
11 | await page.locator(`data-testid=mount`).click()
12 | await expect(page.locator(`[cmdk-item]`)).toHaveText('B')
13 | })
at /home/runner/work/cmdk/cmdk/test/item.test.ts:10:47
|
Run pnpm test || exit 1:
test/item.test.ts#L1
5) [webkit] › item.test.ts:63:7 › item advanced › re-rendering re-matches implicit textContent value
Test timeout of 5000ms exceeded.
|
Run pnpm test || exit 1:
test/item.test.ts#L68
5) [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
|
Run pnpm test || exit 1:
[webkit] › basic.test.ts#L1
[webkit] › basic.test.ts took 19.3s
|
Run pnpm test || exit 1:
[webkit] › item.test.ts#L1
[webkit] › item.test.ts took 18.0s
|
Run pnpm test || exit 1
7 flaky
[webkit] › basic.test.ts:8:7 › basic behavior › input props are forwarded ──────────────────────
[webkit] › basic.test.ts:34:7 › basic behavior › first item is selected when search changes ────
[webkit] › dialog.test.ts:8:7 › dialog › dialog renders in portal ──────────────────────────────
[webkit] › item.test.ts:8:7 › item › mounted item matches search ───────────────────────────────
[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 ─────────────────────
[webkit] › props.test.ts:11:7 › props › results match against custom filter ────────────────────
34 passed (47.7s)
|
Loading