support rendering Command.List in a portal, fixes #95 #200
Annotations
10 errors, 7 warnings, and 1 notice
[webkit] › basic.test.ts:13:7 › basic behavior › item value is derived from textContent:
test/basic.test.ts#L1
1) [webkit] › basic.test.ts:13:7 › basic behavior › item value is derived from textContent ───────
Test timeout of 5000ms exceeded.
|
[webkit] › basic.test.ts:13:7 › basic behavior › item value is derived from textContent:
test/basic.test.ts#L15
1) [webkit] › basic.test.ts:13:7 › basic behavior › item value is derived from textContent ───────
Error: expect(locator).toHaveText(expected)
Locator: locator('[cmdk-item][data-value="item"]')
Expected string: "Item"
Received string: ""
Call log:
- expect.toHaveText with timeout 5000ms
- waiting for locator('[cmdk-item][data-value="item"]')
13 | test('item value is derived from textContent', async ({ page }) => {
14 | const item = page.locator(`[cmdk-item][data-value="item"]`)
> 15 | await expect(item).toHaveText('Item')
| ^
16 | })
17 |
18 | test('item value prop is preferred over textContent', async ({ page }) => {
at /home/runner/work/cmdk/cmdk/test/basic.test.ts:15:24
|
[webkit] › basic.test.ts:13:7 › basic behavior › item value is derived from textContent:
test/basic.test.ts#L1
1) [webkit] › basic.test.ts:13:7 › basic behavior › item value is derived from textContent ───────
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Test timeout of 5000ms exceeded.
|
[webkit] › basic.test.ts:13:7 › basic behavior › item value is derived from textContent:
test/basic.test.ts#L15
1) [webkit] › basic.test.ts:13:7 › basic behavior › item value is derived from textContent ───────
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: expect(locator).toHaveText(expected)
Locator: locator('[cmdk-item][data-value="item"]')
Expected string: "Item"
Received string: ""
Call log:
- expect.toHaveText with timeout 5000ms
- waiting for locator('[cmdk-item][data-value="item"]')
13 | test('item value is derived from textContent', async ({ page }) => {
14 | const item = page.locator(`[cmdk-item][data-value="item"]`)
> 15 | await expect(item).toHaveText('Item')
| ^
16 | })
17 |
18 | test('item value prop is preferred over textContent', async ({ page }) => {
at /home/runner/work/cmdk/cmdk/test/basic.test.ts:15:24
|
[webkit] › basic.test.ts:13:7 › basic behavior › item value is derived from textContent:
test/basic.test.ts#L1
1) [webkit] › basic.test.ts:13:7 › basic behavior › item value is derived from textContent ───────
Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
Test timeout of 5000ms exceeded.
|
[webkit] › basic.test.ts:13:7 › basic behavior › item value is derived from textContent:
test/basic.test.ts#L15
1) [webkit] › basic.test.ts:13:7 › basic behavior › item value is derived from textContent ───────
Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
Error: expect(locator).toHaveText(expected)
Locator: locator('[cmdk-item][data-value="item"]')
Expected string: "Item"
Received string: ""
Call log:
- expect.toHaveText with timeout 5000ms
- waiting for locator('[cmdk-item][data-value="item"]')
13 | test('item value is derived from textContent', async ({ page }) => {
14 | const item = page.locator(`[cmdk-item][data-value="item"]`)
> 15 | await expect(item).toHaveText('Item')
| ^
16 | })
17 |
18 | test('item value prop is preferred over textContent', async ({ page }) => {
at /home/runner/work/cmdk/cmdk/test/basic.test.ts:15:24
|
[webkit] › basic.test.ts:23:7 › basic behavior › item onSelect is called on click:
test/basic.test.ts#L1
2) [webkit] › basic.test.ts:23:7 › basic behavior › item onSelect is called on click ─────────────
Test timeout of 5000ms exceeded.
|
[webkit] › basic.test.ts:23:7 › basic behavior › item onSelect is called on click:
test/basic.test.ts#L25
2) [webkit] › basic.test.ts:23:7 › basic behavior › item onSelect is called on click ─────────────
Error: page.waitForEvent: Test timeout of 5000ms exceeded.
=========================== logs ===========================
waiting for event "console"
============================================================
23 | test('item onSelect is called on click', async ({ page }) => {
24 | const item = page.locator(`[cmdk-item][data-value="item"]`)
> 25 | const [message] = await Promise.all([page.waitForEvent('console'), item.click()])
| ^
26 | expect(message.text()).toEqual('Item selected')
27 | })
28 |
at /home/runner/work/cmdk/cmdk/test/basic.test.ts:25:47
|
[webkit] › basic.test.ts:23:7 › basic behavior › item onSelect is called on click:
test/basic.test.ts#L1
2) [webkit] › basic.test.ts:23:7 › basic behavior › item onSelect is called on click ─────────────
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Test timeout of 5000ms exceeded.
|
[webkit] › basic.test.ts:23:7 › basic behavior › item onSelect is called on click:
test/basic.test.ts#L25
2) [webkit] › basic.test.ts:23:7 › basic behavior › item onSelect is called on click ─────────────
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: page.waitForEvent: Test timeout of 5000ms exceeded.
=========================== logs ===========================
waiting for event "console"
============================================================
23 | test('item onSelect is called on click', async ({ page }) => {
24 | const item = page.locator(`[cmdk-item][data-value="item"]`)
> 25 | const [message] = await Promise.all([page.waitForEvent('console'), item.click()])
| ^
26 | expect(message.text()).toEqual('Item selected')
27 | })
28 |
at /home/runner/work/cmdk/cmdk/test/basic.test.ts:25:47
|
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/
|
Slow Test:
[webkit] › keybind.test.ts#L1
[webkit] › keybind.test.ts took 2.7m
|
Slow Test:
[webkit] › basic.test.ts#L1
[webkit] › basic.test.ts took 54.3s
|
Slow Test:
[webkit] › group.test.ts#L1
[webkit] › group.test.ts took 45.0s
|
Slow Test:
[webkit] › props.test.ts#L1
[webkit] › props.test.ts took 23.4s
|
Slow Test:
[webkit] › item.test.ts#L1
[webkit] › item.test.ts took 22.0s
|
🎭 Playwright Run Summary
24 failed
[webkit] › basic.test.ts:13:7 › basic behavior › item value is derived from textContent ────────
[webkit] › basic.test.ts:23:7 › basic behavior › item onSelect is called on click ──────────────
[webkit] › basic.test.ts:29:7 › basic behavior › first item is selected by default ─────────────
[webkit] › basic.test.ts:50:7 › basic behavior › items filter when searching by keywords ───────
[webkit] › group.test.ts:8:7 › group › groups are shown/hidden based on item matches ───────────
[webkit] › group.test.ts:14:7 › group › group can be progressively rendered ────────────────────
[webkit] › group.test.ts:22:7 › group › mounted group still rendered with filter using forceMount
[webkit] › item.test.ts:22:7 › item › unmount item that is selected ────────────────────────────
[webkit] › item.test.ts:43:7 › item › selected does not change when mounting new items ─────────
[webkit] › keybind.test.ts:8:7 › arrow keybinds › arrow up/down changes selected item ──────────
[webkit] › keybind.test.ts:16:7 › arrow keybinds › meta arrow up/down goes to first and last item
[webkit] › keybind.test.ts:24:7 › arrow keybinds › alt arrow up/down goes to next and prev item
[webkit] › keybind.test.ts:42:7 › vim jk keybinds › ctrl j/k changes selected item ─────────────
[webkit] › keybind.test.ts:50:7 › vim jk keybinds › meta ctrl j/k goes to first and last item ──
[webkit] › keybind.test.ts:58:7 › vim jk keybinds › alt ctrl j/k goes to next and prev item ────
[webkit] › keybind.test.ts:76:7 › vim np keybinds › ctrl n/p changes selected item ─────────────
[webkit] › keybind.test.ts:84:7 › vim np keybinds › meta ctrl n/p goes to first and last item ──
[webkit] › keybind.test.ts:92:7 › vim np keybinds › alt ctrl n/p goes to next and prev item ────
[webkit] › keybind.test.ts:110:7 › no-vim keybinds › ctrl j/k does nothing ─────────────────────
[webkit] › keybind.test.ts:118:7 › no-vim keybinds › ctrl n/p does nothing ─────────────────────
[webkit] › props.test.ts:17:7 › props › controlled value ───────────────────────────────────────
[webkit] › props.test.ts:24:7 › props › keep controlled value if empty results ─────────────────
[webkit] › props.test.ts:33:7 › props › controlled search ──────────────────────────────────────
[webkit] › props.test.ts:40:7 › props › keep focus on the provided initial value ───────────────
17 passed (4.4m)
|
Artifacts
Produced during runtime
Name | Size | |
---|---|---|
playwright-report
Expired
|
222 KB |
|