feat: allow overriding props of components #170
Annotations
10 errors, 3 warnings, and 1 notice
[webkit] › basic.test.ts:34:3 › basic behavior › first item is selected when search changes:
test/basic.test.ts#L1
1) [webkit] › basic.test.ts:34:3 › basic behavior › first item is selected when search changes ===
Test timeout of 5000ms exceeded.
|
[webkit] › basic.test.ts:34:3 › basic behavior › first item is selected when search changes:
test/basic.test.ts#L38
1) [webkit] › basic.test.ts:34:3 › basic behavior › first item is selected when search changes ===
Error: expect(received).toHaveText(expected)
Expected string: "Value"
Received string: "Item"
Call log:
- expect.toHaveText with timeout 5000ms
- waiting for selector "[cmdk-item][aria-selected]"
- selector resolved to <div id=":R5am:" cmdk-item="" class="item" role="opti…>Item</div>
- unexpected value "Item"
- selector resolved to <div id=":R5am:" cmdk-item="" class="item" role="opti…>Item</div>
- unexpected value "Item"
- selector resolved to <div id=":R5am:" cmdk-item="" class="item" role="opti…>Item</div>
- unexpected value "Item"
- selector resolved to <div id=":R5am:" cmdk-item="" class="item" role="opti…>Item</div>
- unexpected value "Item"
- selector resolved to <div id=":R5am:" cmdk-item="" class="item" role="opti…>Item</div>
- unexpected value "Item"
- selector resolved to <div id=":R5am:" cmdk-item="" class="item" role="opti…>Item</div>
- unexpected value "Item"
36 | await input.type('x')
37 | const selected = page.locator(`[cmdk-item][aria-selected]`)
> 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
|
[webkit] › basic.test.ts:34:3 › basic behavior › first item is selected when search changes:
test/basic.test.ts#L1
1) [webkit] › basic.test.ts:34:3 › basic behavior › first item is selected when search changes ===
Pending operations:
- expect.toHaveText at node_modules/.pnpm/@playwright[email protected]/node_modules/@playwright/test/lib/util.js:97:56
|
[webkit] › dialog.test.ts:8:3 › dialog › dialog renders in portal:
test/dialog.test.ts#L1
2) [webkit] › dialog.test.ts:8:3 › dialog › dialog renders in portal =============================
Test timeout of 5000ms exceeded.
|
[webkit] › dialog.test.ts:8:3 › dialog › dialog renders in portal:
test/dialog.test.ts#L9
2) [webkit] › dialog.test.ts:8:3 › dialog › dialog renders in portal =============================
Error: expect(received).toHaveCount(expected) // deep equality
Expected: 1
Received: undefined
Call log:
- expect.toHaveCount with timeout 5000ms
- waiting for selector "[cmdk-dialog]"
- selector resolved to 0 elements
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
|
[webkit] › dialog.test.ts:8:3 › dialog › dialog renders in portal:
test/dialog.test.ts#L1
2) [webkit] › dialog.test.ts:8:3 › dialog › dialog renders in portal =============================
Pending operations:
- expect.toHaveCount at node_modules/.pnpm/@playwright[email protected]/node_modules/@playwright/test/lib/matchers/toEqual.js:41:62
|
[webkit] › keybind.test.ts:110:3 › no-vim keybinds › ctrl j/k does nothing:
test/keybind.test.ts#L1
3) [webkit] › keybind.test.ts:110:3 › no-vim keybinds › ctrl j/k does nothing ====================
Test timeout of 5000ms exceeded.
|
[webkit] › keybind.test.ts:110:3 › no-vim keybinds › ctrl j/k does nothing:
test/keybind.test.ts#L113
3) [webkit] › keybind.test.ts:110:3 › no-vim keybinds › ctrl j/k does nothing ====================
Error: expect(received).toHaveAttribute(expected)
Expected string: "first"
Received string: "a"
Call log:
- expect.toHaveAttribute with timeout 5000ms
- waiting for selector "[cmdk-item][aria-selected="true"]"
- selector resolved to <div id=":R6pam:" cmdk-item="" role="option" data-val…>A</div>
- unexpected value "a"
- selector resolved to <div id=":R6pam:" cmdk-item="" role="option" data-val…>A</div>
- unexpected value "a"
- selector resolved to <div id=":R6pam:" cmdk-item="" role="option" data-val…>A</div>
- unexpected value "a"
- selector resolved to <div id=":R6pam:" cmdk-item="" role="option" data-val…>A</div>
- unexpected value "a"
- selector resolved to <div id=":R6pam:" cmdk-item="" role="option" data-val…>A</div>
- unexpected value "a"
- selector resolved to <div id=":R6pam:" cmdk-item="" role="option" data-val…>A</div>
- unexpected value "a"
- selector resolved to <div id=":R6pam:" cmdk-item="" role="option" data-val…>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
|
[webkit] › keybind.test.ts:110:3 › no-vim keybinds › ctrl j/k does nothing:
test/keybind.test.ts#L1
3) [webkit] › keybind.test.ts:110:3 › no-vim keybinds › ctrl j/k does nothing ====================
Pending operations:
- expect.toHaveAttribute at node_modules/.pnpm/@playwright[email protected]/node_modules/@playwright/test/lib/util.js:97:56
|
[webkit] › props.test.ts:11:3 › props › results match against custom filter:
test/props.test.ts#L14
4) [webkit] › props.test.ts:11:3 › props › results match against custom filter ===================
expect.toHaveAttribute: Error: strict mode violation: "[cmdk-item]" resolved to 2 elements:
1) <div id=":Rqqm:" cmdk-item="" role="option" data-valu…>ant</div> aka playwright.$("text=ant >> nth=2")
2) <div id=":R1aqm:" cmdk-item="" role="option" data-val…>anteater</div> aka playwright.$("text=anteater")
=========================== logs ===========================
expect.toHaveAttribute with timeout 5000ms
waiting for selector "[cmdk-item]"
strict mode violation: "[cmdk-item]" resolved to 2 elements:
1) <div id=":Rqqm:" cmdk-item="" role="option" data-valu…>ant</div> aka playwright.$("text=ant >> nth=2")
2) <div id=":R1aqm:" cmdk-item="" role="option" data-val…>anteater</div> aka playwright.$("text=anteater")
============================================================
12 | await page.goto('/props?customFilter=true')
13 | await page.locator(`[cmdk-input]`).type(`ant`)
> 14 | await expect(page.locator(`[cmdk-item]`)).toHaveAttribute('data-value', 'ant')
| ^
15 | })
16 |
17 | test('controlled value', async ({ page }) => {
at captureStackTrace (/home/runner/work/cmdk/cmdk/node_modules/.pnpm/@playwright[email protected]/node_modules/@playwright/test/lib/util.js:97:56)
at Object.toMatchText (/home/runner/work/cmdk/cmdk/node_modules/.pnpm/@playwright[email protected]/node_modules/@playwright/test/lib/matchers/toMatchText.js:46:68)
at Object.toHaveAttribute (/home/runner/work/cmdk/cmdk/node_modules/.pnpm/@playwright[email protected]/node_modules/@playwright/test/lib/matchers/matchers.js:161:35)
at Proxy.toHaveAttribute (/home/runner/work/cmdk/cmdk/node_modules/.pnpm/@playwright[email protected]/node_modules/@playwright/test/lib/expect.js:215:32)
at /home/runner/work/cmdk/cmdk/test/props.test.ts:14:47
at /home/runner/work/cmdk/cmdk/node_modules/.pnpm/@playwright[email protected]/node_modules/@playwright/test/lib/workerRunner.js:397:9
at TestInfoImpl._runFn (/home/runner/work/cmdk/cmdk/node_modules/.pnpm/@playwright[email protected]/node_modules/@playwright/test/lib/testInfo.js:170:7)
at /home/runner/work/cmdk/cmdk/node_modules/.pnpm/@playwright[email protected]/node_modules/@playwright/test/lib/workerRunner.js:348:26
at TimeoutManager.runWithTimeout (/home/runner/work/cmdk/cmdk/node_modules/.pnpm/@playwright[email protected]/node_modules/@playwright/test/lib/timeoutManager.js:73:7)
at TestInfoImpl._runWithTimeout (/home/runner/work/cmdk/cmdk/node_modules/.pnpm/@playwright[email protected]/node_modules/@playwright/test/lib/testInfo.js:158:26)
at WorkerRunner._runTest (/home/runner/work/cmdk/cmdk/node_modules/.pnpm/@playwright[email protected]/node_modules/@playwright/test/lib/workerRunner.js:328:5)
at WorkerRunner.runTestGroup (/home/runner/work/cmdk/cmdk/node_modules/.pnpm/@playwright[email protected]/node_modules/@playwright/test/lib/workerRunner.js:195:11)
at process.<anonymous> (/home/runner/work/cmdk/cmdk/node_modules/.pnpm/@playwright[email protected]/node_modules/@playwright/test/lib/worker.js:88:5)
|
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] › basic.test.ts#L1
[webkit] › basic.test.ts took 16s
|
🎭 Playwright Run Summary
4 flaky
[webkit] › basic.test.ts:34:3 › basic behavior › first item is selected when search changes ====
[webkit] › dialog.test.ts:8:3 › dialog › dialog renders in portal ==============================
[webkit] › keybind.test.ts:110:3 › no-vim keybinds › ctrl j/k does nothing =====================
[webkit] › props.test.ts:11:3 › props › results match against custom filter ====================
36 passed (39s)
|
Artifacts
Produced during runtime
Name | Size | |
---|---|---|
playwright-report
Expired
|
45.5 KB |
|