Skip to content

fix(context): read disablePointerSelection from propsRef #285

fix(context): read disablePointerSelection from propsRef

fix(context): read disablePointerSelection from propsRef #285

Triggered via pull request October 30, 2024 18:21
Status Success
Total duration 1m 55s
Artifacts 1

test.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

6 errors and 1 notice
[webkit] › basic.test.ts:23:7 › basic behavior › item onSelect is called on click: 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
[webkit] › group.test.ts:14:7 › group › group can be progressively rendered: test/group.test.ts#L1
2) [webkit] › group.test.ts:14:7 › group › group can be progressively rendered ─────────────────── Test timeout of 5000ms exceeded.
[webkit] › group.test.ts:14:7 › group › group can be progressively rendered: 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
[webkit] › item.test.ts:8:7 › item › mounted item matches search: test/item.test.ts#L1
3) [webkit] › item.test.ts:8:7 › item › mounted item matches search ────────────────────────────── Test timeout of 5000ms exceeded.
[webkit] › item.test.ts:8:7 › item › mounted item matches search: 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
[webkit] › props.test.ts:11:7 › props › results match against custom filter: 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
🎭 Playwright Run Summary
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)

Artifacts

Produced during runtime
Name Size
playwright-report
5.32 KB