Skip to content

fix: use shim instead of default import for use-sync-external-store #289

fix: use shim instead of default import for use-sync-external-store

fix: use shim instead of default import for use-sync-external-store #289

Triggered via pull request October 31, 2024 13:36
Status Success
Total duration 1m 55s
Artifacts 1

test.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

10 errors, 3 warnings, and 1 notice
[webkit] › basic.test.ts:34:7 › basic behavior › first item is selected when search changes: test/basic.test.ts#L1
1) [webkit] › basic.test.ts:34:7 › basic behavior › first item is selected when search changes ─── Test timeout of 5000ms exceeded.
[webkit] › basic.test.ts:34:7 › basic behavior › first item is selected when search changes: test/basic.test.ts#L38
1) [webkit] › 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"]') - locator resolved to <div class="item" cmdk-item="" role="option" id="radi…>Item</div> - unexpected value "Item" - locator resolved to <div class="item" cmdk-item="" role="option" id="radi…>Item</div> - unexpected value "Item" - locator resolved to <div class="item" cmdk-item="" role="option" id="radi…>Item</div> - unexpected value "Item" - locator resolved to <div class="item" cmdk-item="" role="option" id="radi…>Item</div> - unexpected value "Item" - locator resolved to <div class="item" cmdk-item="" role="option" id="radi…>Item</div> - unexpected value "Item" - locator resolved to <div class="item" cmdk-item="" role="option" id="radi…>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
[webkit] › basic.test.ts:59:7 › basic behavior › empty component renders when there are no results: test/basic.test.ts#L1
2) [webkit] › basic.test.ts:59:7 › basic behavior › empty component renders when there are no results Test timeout of 5000ms exceeded.
[webkit] › basic.test.ts:59:7 › basic behavior › empty component renders when there are no results: test/basic.test.ts#L62
2) [webkit] › basic.test.ts:59:7 › basic behavior › empty component renders when there are no results 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]') - locator resolved to 2 elements - unexpected value "2" - locator resolved to 2 elements - unexpected value "2" - locator resolved to 2 elements - unexpected value "2" - locator resolved to 2 elements - unexpected value "2" - locator resolved to 2 elements - unexpected value "2" - locator resolved to 2 elements - unexpected value "2" - locator resolved to 2 elements - unexpected value "2" - locator resolved to 2 elements - unexpected value "2" 60 | const input = page.locator('[cmdk-input]') 61 | await input.type('z') > 62 | await expect(page.locator(`[cmdk-item]`)).toHaveCount(0) | ^ 63 | await expect(page.locator(`[cmdk-empty]`)).toHaveText('No results.') 64 | }) 65 | at /home/runner/work/cmdk/cmdk/test/basic.test.ts:62:47
[webkit] › group.test.ts:14:7 › group › group can be progressively rendered: test/group.test.ts#L1
3) [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#L19
3) [webkit] › group.test.ts:14:7 › group › group can be progressively rendered ─────────────────── Error: expect(locator).toBeVisible() Locator: locator('[cmdk-group][data-value="Numbers"]') Expected: visible Received: hidden Call log: - expect.toBeVisible with timeout 5000ms - waiting for locator('[cmdk-group][data-value="Numbers"]') 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 | }) 21 | 22 | test('mounted group still rendered with filter using forceMount', async ({ page }) => { at /home/runner/work/cmdk/cmdk/test/group.test.ts:19:70
[webkit] › item.test.ts:8:7 › item › mounted item matches search: test/item.test.ts#L1
4) [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
4) [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] › item.test.ts:63:7 › item advanced › re-rendering re-matches implicit textContent value: test/item.test.ts#L1
5) [webkit] › item.test.ts:63:7 › item advanced › re-rendering re-matches implicit textContent value Test timeout of 5000ms exceeded.
[webkit] › item.test.ts:63:7 › item advanced › re-rendering re-matches implicit textContent value: test/item.test.ts#L68
5) [webkit] › 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]') - locator resolved to 2 elements - unexpected value "2" - locator resolved to 2 elements - unexpected value "2" - locator resolved to 2 elements - unexpected value "2" - locator resolved to 2 elements - unexpected value "2" - locator resolved to 2 elements - unexpected value "2" - locator resolved to 2 elements - unexpected value "2" - locator resolved to 2 elements - unexpected value "2" - 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
Slow Test: [webkit] › basic.test.ts#L1
[webkit] › basic.test.ts took 21.1s
Slow Test: [webkit] › keybind.test.ts#L1
[webkit] › keybind.test.ts took 19.4s
Slow Test: [webkit] › item.test.ts#L1
[webkit] › item.test.ts took 17.9s
🎭 Playwright Run Summary
8 flaky [webkit] › basic.test.ts:34:7 › basic behavior › first item is selected when search changes ──── [webkit] › basic.test.ts:59:7 › basic behavior › empty component renders when there are no results [webkit] › group.test.ts:14:7 › group › group can be progressively rendered ──────────────────── [webkit] › item.test.ts:8:7 › item › mounted item matches search ─────────────────────────────── [webkit] › item.test.ts:63:7 › item advanced › re-rendering re-matches implicit textContent value [webkit] › keybind.test.ts:110:7 › no-vim keybinds › ctrl j/k does nothing ───────────────────── [webkit] › keybind.test.ts:118:7 › no-vim keybinds › ctrl n/p does nothing ───────────────────── [webkit] › props.test.ts:11:7 › props › results match against custom filter ──────────────────── 33 passed (52.8s)

Artifacts

Produced during runtime
Name Size
playwright-report
5.88 KB