Convert all tests to Playwright #88
build.yml
on: push
Matrix: test
Matrix: lint
docker-image
0s
Annotations
3 errors, 4 warnings, and 1 notice
src/tests/board.spec.ts:24:9 › Basic board functionality › Dragging notes:
playwright/src/pages/BoardPage.ts#L140
1) src/tests/board.spec.ts:24:9 › Basic board functionality › Dragging notes › Drag multiple items
Error: expect(received).toEqual(expected) // deep equality
- Expected - 1
+ Received + 1
Object {
"x": 300,
- "y": 197,
+ "y": 196,
}
at src/pages/BoardPage.ts:140
138 | async assertItemPosition(item: Locator, x: number, y: number) {
139 | const pos = await getElementPosition(item)
> 140 | expect(pos).toEqual({ x, y })
| ^
141 | },
142 | async getItemPosition(item: Locator) {
143 | return await getElementPosition(item)
at Object.assertItemPosition (/home/runner/work/ourboard/ourboard/playwright/src/pages/BoardPage.ts:140:25)
at /home/runner/work/ourboard/ourboard/playwright/src/tests/board.spec.ts:38:13
at /home/runner/work/ourboard/ourboard/playwright/src/tests/board.spec.ts:34:9
|
src/tests/board.spec.ts:136:9 › Basic board functionality › Resizing notes:
playwright/src/tests/board.spec.ts#L143
2) src/tests/board.spec.ts:136:9 › Basic board functionality › Resizing notes › Can drag to resize items
Error: Timed out 5000ms waiting for expect(locator).toHaveCSS(expected)
Locator: locator('[data-test^="note"][data-test*="Monoids"]')
Expected string: "382.562px"
Received string: "381.562px"
Call log:
- expect.toHaveCSS with timeout 5000ms
- waiting for locator('[data-test^="note"][data-test*="Monoids"]')
- locator resolved to <span title="" draggable="true" data-test="note-select…>…</span>
- unexpected value "381.562px"
- locator resolved to <span title="" draggable="true" data-test="note-select…>…</span>
- unexpected value "381.562px"
- locator resolved to <span title="" draggable="true" data-test="note-select…>…</span>
- unexpected value "381.562px"
- locator resolved to <span title="" draggable="true" data-test="note-select…>…</span>
- unexpected value "381.562px"
- locator resolved to <span title="" draggable="true" data-test="note-select…>…</span>
- unexpected value "381.562px"
- locator resolved to <span title="" draggable="true" data-test="note-select…>…</span>
- unexpected value "381.562px"
- locator resolved to <span title="" draggable="true" data-test="note-select…>…</span>
- unexpected value "381.562px"
- locator resolved to <span title="" draggable="true" data-test="note-select…>…</span>
- unexpected value "381.562px"
- locator resolved to <span title="" draggable="true" data-test="note-select…>…</span>
- unexpected value "381.562px"
141 | await board.selectItems(monoids)
142 | await board.dragSelectionBottomCorner(550, 550)
> 143 | await expect(monoids).toHaveCSS("width", "382.562px")
| ^
144 | })
145 | })
146 |
at /home/runner/work/ourboard/ourboard/playwright/src/tests/board.spec.ts:143:35
at /home/runner/work/ourboard/ourboard/playwright/src/tests/board.spec.ts:140:9
|
test (18.x)
Process completed with exit code 1.
|
lint (18.x)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v2, actions/setup-node@v1. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
lint (18.x)
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2, actions/setup-node@v1. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
|
test (18.x)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v2, actions/setup-node@v1. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
test (18.x)
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2, actions/setup-node@v1. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
|
🎭 Playwright Run Summary
2 failed
src/tests/board.spec.ts:24:9 › Basic board functionality › Dragging notes ──────────────────────
src/tests/board.spec.ts:136:9 › Basic board functionality › Resizing notes ─────────────────────
1 skipped
15 passed (19.2s)
|