Fix use-sync-external-store import (#328) #293
Annotations
10 errors, 2 warnings, and 1 notice
[webkit] › basic.test.ts:59:7 › basic behavior › empty component renders when there are no results:
test/basic.test.ts#L1
1) [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
1) [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] › item.test.ts:8:7 › item › mounted item matches search:
test/item.test.ts#L1
2) [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
2) [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:15:7 › item › mounted item does not match search:
test/item.test.ts#L1
3) [webkit] › item.test.ts:15:7 › item › mounted item does not match search ──────────────────────
Test timeout of 5000ms exceeded.
|
[webkit] › item.test.ts:15:7 › item › mounted item does not match search:
test/item.test.ts#L17
3) [webkit] › item.test.ts:15:7 › item › mounted item does not match 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"
15 | test('mounted item does not match search', async ({ page }) => {
16 | await page.locator(`[cmdk-input]`).type('z')
> 17 | await expect(page.locator(`[cmdk-item]`)).toHaveCount(0)
| ^
18 | await page.locator(`data-testid=mount`).click()
19 | await expect(page.locator(`[cmdk-item]`)).toHaveCount(0)
20 | })
at /home/runner/work/cmdk/cmdk/test/item.test.ts:17:47
|
[webkit] › item.test.ts:63:7 › item advanced › re-rendering re-matches implicit textContent value:
test/item.test.ts#L1
4) [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
4) [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
|
[webkit] › keybind.test.ts:110:7 › no-vim keybinds › ctrl j/k does nothing:
test/keybind.test.ts#L1
5) [webkit] › keybind.test.ts:110:7 › no-vim keybinds › ctrl j/k does nothing ────────────────────
Test timeout of 5000ms exceeded.
|
[webkit] › keybind.test.ts:110:7 › no-vim keybinds › ctrl j/k does nothing:
test/keybind.test.ts#L113
5) [webkit] › keybind.test.ts:110:7 › no-vim keybinds › ctrl j/k does nothing ────────────────────
Error: expect(locator).toHaveAttribute(expected)
Locator: locator('[cmdk-item][aria-selected="true"]')
Expected string: "first"
Received string: "A"
Call log:
- expect.toHaveAttribute with timeout 5000ms
- waiting for locator('[cmdk-item][aria-selected="true"]')
- locator resolved to <div cmdk-item="" role="option" data-value="A" id="ra…>A</div>
- unexpected value "A"
- locator resolved to <div cmdk-item="" role="option" data-value="A" id="ra…>A</div>
- unexpected value "A"
- locator resolved to <div cmdk-item="" role="option" data-value="A" id="ra…>A</div>
- unexpected value "A"
- locator resolved to <div cmdk-item="" role="option" data-value="A" id="ra…>A</div>
- unexpected value "A"
- locator resolved to <div cmdk-item="" role="option" data-value="A" id="ra…>A</div>
- unexpected value "A"
- locator resolved to <div cmdk-item="" role="option" data-value="A" id="ra…>A</div>
- unexpected value "A"
- locator resolved to <div cmdk-item="" role="option" data-value="A" id="ra…>A</div>
- unexpected value "A"
- locator resolved to <div cmdk-item="" role="option" data-value="A" id="ra…>A</div>
- unexpected value "A"
111 | await expect(page.locator(`[cmdk-item][aria-selected="true"]`)).toHaveAttribute('data-value', 'first')
112 | await page.locator(`[cmdk-input]`).press('Control+j')
> 113 | await expect(page.locator(`[cmdk-item][aria-selected="true"]`)).toHaveAttribute('data-value', 'first')
| ^
114 | await page.locator(`[cmdk-input]`).press('Control+k')
115 | await expect(page.locator(`[cmdk-item][aria-selected="true"]`)).toHaveAttribute('data-value', 'first')
116 | })
at /home/runner/work/cmdk/cmdk/test/keybind.test.ts:113:69
|
Slow Test:
[webkit] › item.test.ts#L1
[webkit] › item.test.ts took 22.9s
|
Slow Test:
[webkit] › keybind.test.ts#L1
[webkit] › keybind.test.ts took 20.1s
|
🎭 Playwright Run Summary
7 flaky
[webkit] › basic.test.ts:59:7 › basic behavior › empty component renders when there are no results
[webkit] › item.test.ts:8:7 › item › mounted item matches search ───────────────────────────────
[webkit] › item.test.ts:15:7 › item › mounted item does not match 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 ────────────────────
34 passed (46.0s)
|
Artifacts
Produced during runtime
Name | Size | |
---|---|---|
playwright-report
|
5.49 KB |
|