Skip to content

[Accessibility] Use id instead of children (#254) #312

[Accessibility] Use id instead of children (#254)

[Accessibility] Use id instead of children (#254) #312

Triggered via push March 14, 2025 18:28
Status Success
Total duration 1m 53s
Artifacts 1

test.yml

on: push
Fit to window
Zoom out
Zoom in

Annotations

8 errors and 1 notice
test: test/numeric.test.ts#L22
4) [webkit] › test/numeric.test.ts:17:7 › behavior for numeric values › items filter correctly on non-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" 20 | const removed = page.locator(`[cmdk-item][data-value="removed"]`) 21 | const remains = page.locator(`[cmdk-item][data-value="foo.bar112.value"]`) > 22 | await expect(removed).toHaveCount(0) | ^ 23 | await expect(remains).toHaveCount(1) 24 | }) 25 | }) at /home/runner/work/cmdk/cmdk/test/numeric.test.ts:22:27
test: test/numeric.test.ts#L0
4) [webkit] › test/numeric.test.ts:17:7 › behavior for numeric values › items filter correctly on non-numeric inputs Test timeout of 5000ms exceeded.
test: test/item.test.ts#L68
3) [webkit] › test/item.test.ts:63:7 › item advanced › re-rendering re-matches implicit textContent value Error: expect(locator).toHaveCount(expected) Locator: locator('[cmdk-item]') Expected: 0 Received: 2 Call log: - expect.toHaveCount with timeout 5000ms - waiting for locator('[cmdk-item]') 8 × locator resolved to 2 elements - unexpected value "2" 66 | const button = page.locator(`data-testid=increment`) 67 | await button.click() > 68 | await expect(page.locator(`[cmdk-item]`)).toHaveCount(0) | ^ 69 | await button.click() 70 | await expect(page.locator(`[cmdk-item]`)).toHaveCount(2) 71 | }) at /home/runner/work/cmdk/cmdk/test/item.test.ts:68:47
test: test/item.test.ts#L0
3) [webkit] › test/item.test.ts:63:7 › item advanced › re-rendering re-matches implicit textContent value Test timeout of 5000ms exceeded.
test: test/item.test.ts#L10
2) [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
2) [webkit] › test/item.test.ts:8:7 › item › mounted item matches search ───────────────────────── Test timeout of 5000ms exceeded.
test: test/group.test.ts#L10
1) [webkit] › test/group.test.ts:8:7 › group › groups are shown/hidden based on item matches ───── 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"]') 8 × locator resolved to <div cmdk-group="" role="presentation" data-value="Animals">…</div> - unexpected value "visible" 8 | test('groups are shown/hidden based on item matches', async ({ page }) => { 9 | await page.locator(`[cmdk-input]`).type('z') > 10 | await expect(page.locator(`[cmdk-group][data-value="Animals"]`)).not.toBeVisible() | ^ 11 | await expect(page.locator(`[cmdk-group][data-value="Letters"]`)).toBeVisible() 12 | }) 13 | at /home/runner/work/cmdk/cmdk/test/group.test.ts:10:74
test: test/group.test.ts#L0
1) [webkit] › test/group.test.ts:8:7 › group › groups are shown/hidden based on item matches ───── Test timeout of 5000ms exceeded.
test
4 flaky [webkit] › test/group.test.ts:8:7 › group › groups are shown/hidden based on item matches ────── [webkit] › test/item.test.ts:8:7 › item › mounted item matches search ────────────────────────── [webkit] › test/item.test.ts:63:7 › item advanced › re-rendering re-matches implicit textContent value [webkit] › test/numeric.test.ts:17:7 › behavior for numeric values › items filter correctly on non-numeric inputs 37 passed (38.1s)

Artifacts

Produced during runtime
Name Size Digest
playwright-report Expired
9.76 KB
sha256:955ce5750086f3e92f44ff049d877eb8281fed68475197125b6a86c45253b4b2