This repository has been archived by the owner on Apr 8, 2024. It is now read-only.
feat: playwright test migration #25
Annotations
10 errors and 1 notice
[firefox] › core-suggest/core-suggest.spec.ts:60:7 › core-suggest › does not open suggestions on clicking a disabled input:
packages/core-suggest/core-suggest.spec.ts#L73
1) [firefox] › core-suggest/core-suggest.spec.ts:60:7 › core-suggest › does not open suggestions on clicking a disabled input
Error: Timed out 5000ms waiting for expect(received).toHaveJSProperty(expected) // deep equality
Expected: true
Received: false
Call log:
- expect.toHaveJSProperty with timeout 5000ms
- waiting for getByTestId('core-suggest')
- locator resolved to <core-suggest id="lldtkseo6tv" data-testid="core-suggest">…</core-suggest>
- unexpected value "false"
- locator resolved to <core-suggest id="lldtkseo6tv" data-testid="core-suggest">…</core-suggest>
- unexpected value "false"
- locator resolved to <core-suggest id="lldtkseo6tv" data-testid="core-suggest">…</core-suggest>
- unexpected value "false"
- locator resolved to <core-suggest id="lldtkseo6tv" data-testid="core-suggest">…</core-suggest>
- unexpected value "false"
- locator resolved to <core-suggest id="lldtkseo6tv" data-testid="core-suggest">…</core-suggest>
- unexpected value "false"
- locator resolved to <core-suggest id="lldtkseo6tv" data-testid="core-suggest">…</core-suggest>
- unexpected value "false"
- locator resolved to <core-suggest id="lldtkseo6tv" data-testid="core-suggest">…</core-suggest>
- unexpected value "false"
- locator resolved to <core-suggest id="lldtkseo6tv" data-testid="core-suggest">…</core-suggest>
- unexpected value "false"
- locator resolved to <core-suggest id="lldtkseo6tv" data-testid="core-suggest">…</core-suggest>
- unexpected value "false"
71 | await coreSuggestInput.click({ force: true })
72 | await expect(coreSuggestInput).toHaveAttribute('aria-expanded', 'false')
> 73 | await expect(coreSuggest).toHaveJSProperty('hidden', true)
| ^
74 | })
75 |
76 | test('closes suggestions on click outside', async ({ page }) => {
at /Users/runner/work/core-components/core-components/packages/core-suggest/core-suggest.spec.ts:73:31
|
[firefox] › core-suggest/core-suggest.spec.ts:60:7 › core-suggest › does not open suggestions on clicking a disabled input:
packages/core-suggest/core-suggest.spec.ts#L73
1) [firefox] › core-suggest/core-suggest.spec.ts:60:7 › core-suggest › does not open suggestions on clicking a disabled input
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: Timed out 5000ms waiting for expect(received).toHaveJSProperty(expected) // deep equality
Expected: true
Received: false
Call log:
- expect.toHaveJSProperty with timeout 5000ms
- waiting for getByTestId('core-suggest')
- locator resolved to <core-suggest id="lldtkzzisie" data-testid="core-suggest">…</core-suggest>
- unexpected value "false"
- locator resolved to <core-suggest id="lldtkzzisie" data-testid="core-suggest">…</core-suggest>
- unexpected value "false"
- locator resolved to <core-suggest id="lldtkzzisie" data-testid="core-suggest">…</core-suggest>
- unexpected value "false"
- locator resolved to <core-suggest id="lldtkzzisie" data-testid="core-suggest">…</core-suggest>
- unexpected value "false"
- locator resolved to <core-suggest id="lldtkzzisie" data-testid="core-suggest">…</core-suggest>
- unexpected value "false"
- locator resolved to <core-suggest id="lldtkzzisie" data-testid="core-suggest">…</core-suggest>
- unexpected value "false"
- locator resolved to <core-suggest id="lldtkzzisie" data-testid="core-suggest">…</core-suggest>
- unexpected value "false"
- locator resolved to <core-suggest id="lldtkzzisie" data-testid="core-suggest">…</core-suggest>
- unexpected value "false"
- locator resolved to <core-suggest id="lldtkzzisie" data-testid="core-suggest">…</core-suggest>
- unexpected value "false"
71 | await coreSuggestInput.click({ force: true })
72 | await expect(coreSuggestInput).toHaveAttribute('aria-expanded', 'false')
> 73 | await expect(coreSuggest).toHaveJSProperty('hidden', true)
| ^
74 | })
75 |
76 | test('closes suggestions on click outside', async ({ page }) => {
at /Users/runner/work/core-components/core-components/packages/core-suggest/core-suggest.spec.ts:73:31
|
[firefox] › core-suggest/core-suggest.spec.ts:248:7 › core-suggest › triggers ajax error event on bad url:
packages/core-suggest/core-suggest.spec.ts#L1
2) [firefox] › core-suggest/core-suggest.spec.ts:248:7 › core-suggest › triggers ajax error event on bad url
Test timeout of 30000ms exceeded.
|
[firefox] › core-suggest/core-suggest.spec.ts:248:7 › core-suggest › triggers ajax error event on bad url:
packages/core-suggest/core-suggest.spec.ts#L260
2) [firefox] › core-suggest/core-suggest.spec.ts:248:7 › core-suggest › triggers ajax error event on bad url
Error: page.waitForRequest: Page closed
=========================== logs ===========================
waiting for request "http://foo/"
============================================================
258 | })
259 | await coreSuggestInput.fill('abc')
> 260 | await page.waitForRequest(TEST_BAD_URL)
| ^
261 | await page.waitForFunction(() => window.captureErrorEvent)
262 | await expect(ajaxErrorEvents).toHaveLength(1)
263 | // TODO: Assert errorResponse message
at /Users/runner/work/core-components/core-components/packages/core-suggest/core-suggest.spec.ts:260:16
|
[firefox] › core-suggest/core-suggest.spec.ts:248:7 › core-suggest › triggers ajax error event on bad url:
packages/core-suggest/core-suggest.spec.ts#L1
2) [firefox] › core-suggest/core-suggest.spec.ts:248:7 › core-suggest › triggers ajax error event on bad url
Pending operations:
- page.close at packages/core-suggest/core-suggest.spec.ts:28:10
|
[firefox] › core-suggest/core-suggest.spec.ts:248:7 › core-suggest › triggers ajax error event on bad url:
packages/core-suggest/core-suggest.spec.ts#L1
2) [firefox] › core-suggest/core-suggest.spec.ts:248:7 › core-suggest › triggers ajax error event on bad url
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Test timeout of 30000ms exceeded.
|
[firefox] › core-suggest/core-suggest.spec.ts:248:7 › core-suggest › triggers ajax error event on bad url:
packages/core-suggest/core-suggest.spec.ts#L260
2) [firefox] › core-suggest/core-suggest.spec.ts:248:7 › core-suggest › triggers ajax error event on bad url
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: page.waitForRequest: Page closed
=========================== logs ===========================
waiting for request "http://foo/"
============================================================
258 | })
259 | await coreSuggestInput.fill('abc')
> 260 | await page.waitForRequest(TEST_BAD_URL)
| ^
261 | await page.waitForFunction(() => window.captureErrorEvent)
262 | await expect(ajaxErrorEvents).toHaveLength(1)
263 | // TODO: Assert errorResponse message
at /Users/runner/work/core-components/core-components/packages/core-suggest/core-suggest.spec.ts:260:16
|
[firefox] › core-suggest/core-suggest.spec.ts:248:7 › core-suggest › triggers ajax error event on bad url:
packages/core-suggest/core-suggest.spec.ts#L1
2) [firefox] › core-suggest/core-suggest.spec.ts:248:7 › core-suggest › triggers ajax error event on bad url
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Pending operations:
- page.close at packages/core-suggest/core-suggest.spec.ts:28:10
|
[webkit] › core-toggle/core-toggle.spec.ts:63:7 › core-toggle › closes nested toggle with esc:
packages/core-toggle/core-toggle.spec.ts#L80
3) [webkit] › core-toggle/core-toggle.spec.ts:63:7 › core-toggle › closes nested toggle with esc ─
Error: Timed out 5000ms waiting for expect(received).toHaveJSProperty(expected) // deep equality
Expected: true
Received: false
Call log:
- expect.toHaveJSProperty with timeout 5000ms
- waiting for getByTestId('core-toggle').locator('core-toggle')
- locator resolved to <core-toggle role="group" id="lldtpzbckh8" aria-labelledby="l…>…</core-toggle>
- unexpected value "false"
- locator resolved to <core-toggle role="group" id="lldtpzbckh8" aria-labelledby="l…>…</core-toggle>
- unexpected value "false"
- locator resolved to <core-toggle role="group" id="lldtpzbckh8" aria-labelledby="l…>…</core-toggle>
- unexpected value "false"
- locator resolved to <core-toggle role="group" id="lldtpzbckh8" aria-labelledby="l…>…</core-toggle>
- unexpected value "false"
- locator resolved to <core-toggle role="group" id="lldtpzbckh8" aria-labelledby="l…>…</core-toggle>
- unexpected value "false"
- locator resolved to <core-toggle role="group" id="lldtpzbckh8" aria-labelledby="l…>…</core-toggle>
- unexpected value "false"
- locator resolved to <core-toggle role="group" id="lldtpzbckh8" aria-labelledby="l…>…</core-toggle>
- unexpected value "false"
- locator resolved to <core-toggle role="group" id="lldtpzbckh8" aria-labelledby="l…>…</core-toggle>
- unexpected value "false"
- locator resolved to <core-toggle role="group" id="lldtpzbckh8" aria-labelledby="l…>…</core-toggle>
- unexpected value "false"
78 | await page.keyboard.press('Escape')
79 | await expect(coreToggle).toHaveJSProperty('hidden', false)
> 80 | await expect(coreToggle.locator('core-toggle')).toHaveJSProperty('hidden', true)
| ^
81 | await page.keyboard.press('Escape')
82 | await expect(coreToggle).toHaveJSProperty('hidden', true)
83 | })
at /Users/runner/work/core-components/core-components/packages/core-toggle/core-toggle.spec.ts:80:53
|
[webkit] › core-toggle/core-toggle.spec.ts:63:7 › core-toggle › closes nested toggle with esc:
packages/core-toggle/core-toggle.spec.ts#L80
3) [webkit] › core-toggle/core-toggle.spec.ts:63:7 › core-toggle › closes nested toggle with esc ─
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: Timed out 5000ms waiting for expect(received).toHaveJSProperty(expected) // deep equality
Expected: true
Received: false
Call log:
- expect.toHaveJSProperty with timeout 5000ms
- waiting for getByTestId('core-toggle').locator('core-toggle')
- locator resolved to <core-toggle role="group" id="lldtq4vn9bh" aria-labelledby="l…>…</core-toggle>
- unexpected value "false"
- locator resolved to <core-toggle role="group" id="lldtq4vn9bh" aria-labelledby="l…>…</core-toggle>
- unexpected value "false"
- locator resolved to <core-toggle role="group" id="lldtq4vn9bh" aria-labelledby="l…>…</core-toggle>
- unexpected value "false"
- locator resolved to <core-toggle role="group" id="lldtq4vn9bh" aria-labelledby="l…>…</core-toggle>
- unexpected value "false"
- locator resolved to <core-toggle role="group" id="lldtq4vn9bh" aria-labelledby="l…>…</core-toggle>
- unexpected value "false"
- locator resolved to <core-toggle role="group" id="lldtq4vn9bh" aria-labelledby="l…>…</core-toggle>
- unexpected value "false"
- locator resolved to <core-toggle role="group" id="lldtq4vn9bh" aria-labelledby="l…>…</core-toggle>
- unexpected value "false"
- locator resolved to <core-toggle role="group" id="lldtq4vn9bh" aria-labelledby="l…>…</core-toggle>
- unexpected value "false"
- locator resolved to <core-toggle role="group" id="lldtq4vn9bh" aria-labelledby="l…>…</core-toggle>
- unexpected value "false"
78 | await page.keyboard.press('Escape')
79 | await expect(coreToggle).toHaveJSProperty('hidden', false)
> 80 | await expect(coreToggle.locator('core-toggle')).toHaveJSProperty('hidden', true)
| ^
81 | await page.keyboard.press('Escape')
82 | await expect(coreToggle).toHaveJSProperty('hidden', true)
83 | })
at /Users/runner/work/core-components/core-components/packages/core-toggle/core-toggle.spec.ts:80:53
|
🎭 Playwright Run Summary
3 failed
[firefox] › core-suggest/core-suggest.spec.ts:60:7 › core-suggest › does not open suggestions on clicking a disabled input
[firefox] › core-suggest/core-suggest.spec.ts:248:7 › core-suggest › triggers ajax error event on bad url
[webkit] › core-toggle/core-toggle.spec.ts:63:7 › core-toggle › closes nested toggle with esc ──
9 flaky
[chromium] › core-datepicker/core-datepicker.spec.ts:289:7 › core-datepicker › does not trigger change event when clicking selected date
[chromium] › core-datepicker/core-datepicker.spec.ts:305:7 › core-datepicker › does trigger change event when clicking selected date
[chromium] › core-toggle/core-toggle.spec.ts:150:9 › core-toggle › data-popup attribute › sets aria-label with data-popup attr and value
[firefox] › core-datepicker/core-datepicker.spec.ts:289:7 › core-datepicker › does not trigger change event when clicking selected date
[firefox] › core-datepicker/core-datepicker.spec.ts:305:7 › core-datepicker › does trigger change event when clicking selected date
[firefox] › core-toggle/core-toggle.spec.ts:150:9 › core-toggle › data-popup attribute › sets aria-label with data-popup attr and value
[webkit] › core-datepicker/core-datepicker.spec.ts:289:7 › core-datepicker › does not trigger change event when clicking selected date
[webkit] › core-datepicker/core-datepicker.spec.ts:305:7 › core-datepicker › does trigger change event when clicking selected date
[webkit] › core-toggle/core-toggle.spec.ts:150:9 › core-toggle › data-popup attribute › sets aria-label with data-popup attr and value
6 skipped
315 passed (6.3m)
|
Artifacts
Produced during runtime
Name | Size | |
---|---|---|
playwright-report
Expired
|
2.11 MB |
|