Skip to content

v1.1.0

v1.1.0 #314

Triggered via push March 14, 2025 18:51
Status Success
Total duration 2m 5s
Artifacts 1

test.yml

on: push
Fit to window
Zoom out
Zoom in

Annotations

9 errors and 1 notice
test: test/props.test.ts#L14
5) [webkit] › test/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:" aria-disabled="false" aria-selected="false" data-disabled="false" data-selected="false">ant</div> aka getByLabel('Suggestions').getByText('ant', { exact: true }) 2) <div cmdk-item="" role="option" id="radix-:R1aqm:" aria-disabled="false" aria-selected="false" data-disabled="false" data-selected="false">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
test: test/numeric.test.ts#L13
4) [webkit] › test/numeric.test.ts:8:7 › behavior for numeric values › items filter correctly on numeric inputs Error: expect(locator).toHaveCount(expected) Locator: locator('[cmdk-item][data-value="removed"]') Expected: 0 Received: 1 Call log: - expect.toHaveCount with timeout 5000ms - waiting for locator('[cmdk-item][data-value="removed"]') 8 × locator resolved to 1 element - unexpected value "1" 11 | const removed = page.locator(`[cmdk-item][data-value="removed"]`) 12 | const remains = page.locator(`[cmdk-item][data-value="foo.bar112.value"]`) > 13 | await expect(removed).toHaveCount(0) | ^ 14 | await expect(remains).toHaveCount(1) 15 | }) 16 | at /home/runner/work/cmdk/cmdk/test/numeric.test.ts:13:27
test: test/numeric.test.ts#L0
4) [webkit] › test/numeric.test.ts:8:7 › behavior for numeric values › items filter correctly on numeric inputs Test timeout of 5000ms exceeded.
test: test/item.test.ts#L10
3) [webkit] › test/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]') 8 × 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
test: test/item.test.ts#L0
3) [webkit] › test/item.test.ts:8:7 › item › mounted item matches search ───────────────────────── Test timeout of 5000ms exceeded.
test: test/basic.test.ts#L72
2) [webkit] › test/basic.test.ts:66:7 › basic behavior › className is applied to each part ─────── Error: expect(locator).toHaveCount(expected) Locator: locator('.item') Expected: 0 Received: 2 Call log: - expect.toHaveCount with timeout 5000ms - waiting for locator('.item') 7 × locator resolved to 2 elements - unexpected value "2" 70 | await expect(page.locator(`.item`)).toHaveCount(2) 71 | await page.locator('[cmdk-input]').type('zzzz') > 72 | await expect(page.locator(`.item`)).toHaveCount(0) | ^ 73 | await expect(page.locator(`.empty`)).toHaveCount(1) 74 | }) 75 | }) at /home/runner/work/cmdk/cmdk/test/basic.test.ts:72:41
test: test/basic.test.ts#L0
2) [webkit] › test/basic.test.ts:66:7 › basic behavior › className is applied to each part ─────── Test timeout of 5000ms exceeded.
test: test/basic.test.ts#L38
1) [webkit] › test/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"]') 6 × locator resolved to <div class="item" cmdk-item="" role="option" id="radix-:R5am:" data-value="Item" aria-selected="true" data-selected="true" aria-disabled="false" data-disabled="false">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
test: test/basic.test.ts#L0
1) [webkit] › test/basic.test.ts:34:7 › basic behavior › first item is selected when search changes Test timeout of 5000ms exceeded.
test
5 flaky [webkit] › test/basic.test.ts:34:7 › basic behavior › first item is selected when search changes [webkit] › test/basic.test.ts:66:7 › basic behavior › className is applied to each part ──────── [webkit] › test/item.test.ts:8:7 › item › mounted item matches search ────────────────────────── [webkit] › test/numeric.test.ts:8:7 › behavior for numeric values › items filter correctly on numeric inputs [webkit] › test/props.test.ts:11:7 › props › results match against custom filter ─────────────── 36 passed (39.2s)

Artifacts

Produced during runtime
Name Size Digest
playwright-report Expired
12.4 KB
sha256:b680c06e38ae3e1c7152a6f8293f9b4915271dc285eb7a8ca387529975d82c04