Skip to content

fix: Framer example capitalization of values (#231) #239

fix: Framer example capitalization of values (#231)

fix: Framer example capitalization of values (#231) #239

Triggered via push March 9, 2024 21:12
Status Success
Total duration 2m 27s
Artifacts 1

test.yml

on: push
Fit to window
Zoom out
Zoom in

Annotations

10 errors, 4 warnings, and 1 notice
[webkit] › basic.test.ts:8:7 › basic behavior › input props are forwarded: test/basic.test.ts#L4
1) [webkit] › basic.test.ts:8:7 › basic behavior › input props are forwarded ───────────────────── Test timeout of 5000ms exceeded while running "beforeEach" hook. 2 | 3 | test.describe('basic behavior', async () => { > 4 | test.beforeEach(async ({ page }) => { | ^ 5 | await page.goto('/') 6 | }) 7 | at /home/runner/work/cmdk/cmdk/test/basic.test.ts:4:8
[webkit] › basic.test.ts:8:7 › basic behavior › input props are forwarded: test/basic.test.ts#L1
1) [webkit] › basic.test.ts:8:7 › basic behavior › input props are forwarded ───────────────────── Error: browserContext.newPage: Test timeout of 5000ms exceeded.
[webkit] › basic.test.ts:23:7 › basic behavior › item onSelect is called on click: test/basic.test.ts#L26
2) [webkit] › basic.test.ts:23:7 › basic behavior › item onSelect is called on click ───────────── Error: expect(received).toEqual(expected) // deep equality Expected: "Item selected" Received: "[HMR] connected" 24 | const item = page.locator(`[cmdk-item][data-value="Item"]`) 25 | const [message] = await Promise.all([page.waitForEvent('console'), item.click()]) > 26 | expect(message.text()).toEqual('Item selected') | ^ 27 | }) 28 | 29 | test('first item is selected by default', async ({ page }) => { at /home/runner/work/cmdk/cmdk/test/basic.test.ts:26:28
[webkit] › basic.test.ts:34:7 › basic behavior › first item is selected when search changes: test/basic.test.ts#L1
3) [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
3) [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 id=":R5am:" class="item" cmdk-item="" role="opti…>Item</div> - unexpected value "Item" - locator resolved to <div id=":R5am:" class="item" cmdk-item="" role="opti…>Item</div> - unexpected value "Item" - locator resolved to <div id=":R5am:" class="item" cmdk-item="" role="opti…>Item</div> - unexpected value "Item" - locator resolved to <div id=":R5am:" class="item" cmdk-item="" role="opti…>Item</div> - unexpected value "Item" - locator resolved to <div id=":R5am:" class="item" cmdk-item="" role="opti…>Item</div> - unexpected value "Item" - locator resolved to <div id=":R5am:" class="item" cmdk-item="" role="opti…>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] › dialog.test.ts:8:7 › dialog › dialog renders in portal: test/dialog.test.ts#L4
4) [webkit] › dialog.test.ts:8:7 › dialog › dialog renders in portal ───────────────────────────── Test timeout of 5000ms exceeded while running "beforeEach" hook. 2 | 3 | test.describe('dialog', async () => { > 4 | test.beforeEach(async ({ page }) => { | ^ 5 | await page.goto('/dialog') 6 | }) 7 | at /home/runner/work/cmdk/cmdk/test/dialog.test.ts:4:8
[webkit] › dialog.test.ts:8:7 › dialog › dialog renders in portal: test/dialog.test.ts#L1
4) [webkit] › dialog.test.ts:8:7 › dialog › dialog renders in portal ───────────────────────────── Error: browserContext.newPage: Test timeout of 5000ms exceeded.
[webkit] › item.test.ts:15:7 › item › mounted item does not match search: test/item.test.ts#L1
5) [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
5) [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
6) [webkit] › item.test.ts:63:7 › item advanced › re-rendering re-matches implicit textContent value Test timeout of 5000ms exceeded.
test
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, pnpm/action-setup@v2, actions/setup-node@v3, actions/upload-artifact@v2. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
test
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/upload-artifact@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
Slow Test: [webkit] › basic.test.ts#L1
[webkit] › basic.test.ts took 22.6s
Slow Test: [webkit] › item.test.ts#L1
[webkit] › item.test.ts took 18.6s
🎭 Playwright Run Summary
8 flaky [webkit] › basic.test.ts:8:7 › basic behavior › input props are forwarded ────────────────────── [webkit] › basic.test.ts:23:7 › basic behavior › item onSelect is called on click ────────────── [webkit] › basic.test.ts:34:7 › basic behavior › first item is selected when search changes ──── [webkit] › dialog.test.ts:8:7 › dialog › dialog renders in portal ────────────────────────────── [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] › props.test.ts:11:7 › props › results match against custom filter ──────────────────── 33 passed (50.7s)

Artifacts

Produced during runtime
Name Size
playwright-report Expired
73 KB