v1.0.4 #294
Annotations
7 errors, 1 warning, 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] › keybind.test.ts:118:7 › no-vim keybinds › ctrl n/p does nothing:
test/keybind.test.ts#L1
3) [webkit] › keybind.test.ts:118:7 › no-vim keybinds › ctrl n/p does nothing ────────────────────
Test timeout of 5000ms exceeded.
|
[webkit] › keybind.test.ts:118:7 › no-vim keybinds › ctrl n/p does nothing:
test/keybind.test.ts#L121
3) [webkit] › keybind.test.ts:118:7 › no-vim keybinds › ctrl n/p 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"
119 | await expect(page.locator(`[cmdk-item][aria-selected="true"]`)).toHaveAttribute('data-value', 'first')
120 | await page.locator(`[cmdk-input]`).press('Control+n')
> 121 | await expect(page.locator(`[cmdk-item][aria-selected="true"]`)).toHaveAttribute('data-value', 'first')
| ^
122 | await page.locator(`[cmdk-input]`).press('Control+p')
123 | await expect(page.locator(`[cmdk-item][aria-selected="true"]`)).toHaveAttribute('data-value', 'first')
124 | })
at /home/runner/work/cmdk/cmdk/test/keybind.test.ts:121:69
|
[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" data-value="ant" id="…>ant</div> aka getByRole('option', { name: 'ant', exact: true })
2) <div cmdk-item="" role="option" id="radix-:R1aqm:" ar…>anteater</div> aka getByRole('option', { name: '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
|
Slow Test:
[webkit] › keybind.test.ts#L1
[webkit] › keybind.test.ts took 15.5s
|
🎭 Playwright Run Summary
4 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] › 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 ────────────────────
37 passed (39.6s)
|
Artifacts
Produced during runtime
Name | Size | |
---|---|---|
playwright-report
|
5.08 KB |
|