fix(context): read disablePointerSelection from propsRef #285
Annotations
6 errors and 1 notice
Run pnpm test || exit 1:
test/basic.test.ts#L26
1) [webkit] › basic.test.ts:23:7 › basic behavior › item onSelect is called on click ─────────────
Error: expect(received).toEqual(expected) // deep equality
Expected: "Item selected"
Received: "[HMR] connected"
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 |
29 | test('first item is selected by default', async ({ page }) => {
at /home/runner/work/cmdk/cmdk/test/basic.test.ts:26:28
|
Run pnpm test || exit 1:
test/group.test.ts#L1
2) [webkit] › group.test.ts:14:7 › group › group can be progressively rendered ───────────────────
Test timeout of 5000ms exceeded.
|
Run pnpm test || exit 1:
test/group.test.ts#L17
2) [webkit] › group.test.ts:14:7 › group › group can be progressively rendered ───────────────────
Error: expect(locator).not.toBeVisible()
Locator: locator('[cmdk-group][data-value="Animals"]')
Expected: not visible
Received: visible
Call log:
- expect.not.toBeVisible with timeout 5000ms
- waiting for locator('[cmdk-group][data-value="Animals"]')
- locator resolved to <div cmdk-group="" role="presentation" data-value="An…>…</div>
- unexpected value "visible"
- locator resolved to <div cmdk-group="" role="presentation" data-value="An…>…</div>
- unexpected value "visible"
- locator resolved to <div cmdk-group="" role="presentation" data-value="An…>…</div>
- unexpected value "visible"
- locator resolved to <div cmdk-group="" role="presentation" data-value="An…>…</div>
- unexpected value "visible"
- locator resolved to <div cmdk-group="" role="presentation" data-value="An…>…</div>
- unexpected value "visible"
- locator resolved to <div cmdk-group="" role="presentation" data-value="An…>…</div>
- unexpected value "visible"
- locator resolved to <div cmdk-group="" role="presentation" data-value="An…>…</div>
- unexpected value "visible"
- locator resolved to <div cmdk-group="" role="presentation" data-value="An…>…</div>
- unexpected value "visible"
15 | await expect(page.locator(`[cmdk-group][data-value="Numbers"]`)).not.toBeVisible()
16 | await page.locator(`[cmdk-input]`).type('t')
> 17 | await expect(page.locator(`[cmdk-group][data-value="Animals"]`)).not.toBeVisible()
| ^
18 | await expect(page.locator(`[cmdk-group][data-value="Letters"]`)).not.toBeVisible()
19 | await expect(page.locator(`[cmdk-group][data-value="Numbers"]`)).toBeVisible()
20 | })
at /home/runner/work/cmdk/cmdk/test/group.test.ts:17:74
|
Run pnpm test || exit 1:
test/item.test.ts#L1
3) [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
3) [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/props.test.ts#L14
4) [webkit] › props.test.ts:11:7 › props › results match against custom filter ───────────────────
Error: expect.toHaveAttribute: Error: strict mode violation: locator('[cmdk-item]') resolved to 2 elements:
1) <div cmdk-item="" role="option" id="radix-:Rqqm:" ari…>ant</div> aka getByLabel('Suggestions').getByText('ant', { exact: true })
2) <div cmdk-item="" role="option" id="radix-:R1aqm:" ar…>anteater</div> aka getByText('anteater')
Call log:
- expect.toHaveAttribute with timeout 5000ms
- waiting for locator('[cmdk-item]')
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 /home/runner/work/cmdk/cmdk/test/props.test.ts:14:47
|
Run pnpm test || exit 1
4 flaky
[webkit] › basic.test.ts:23:7 › basic behavior › item onSelect is called on click ──────────────
[webkit] › group.test.ts:14:7 › group › group can be progressively rendered ────────────────────
[webkit] › item.test.ts:8:7 › item › mounted item matches search ───────────────────────────────
[webkit] › props.test.ts:11:7 › props › results match against custom filter ────────────────────
37 passed (36.5s)
|
Loading