This repository has been archived by the owner on Apr 8, 2024. It is now read-only.
feat: playwright test migration #15
Annotations
10 errors and 1 notice
[firefox] › core-datepicker/core-datepicker.spec.ts:78:7 › core-datepicker › resets value when date-attribute is removed:
packages/core-datepicker/core-datepicker.spec.ts#L1
1) [firefox] › core-datepicker/core-datepicker.spec.ts:78:7 › core-datepicker › resets value when date-attribute is removed
Test timeout of 30000ms exceeded.
|
[firefox] › core-datepicker/core-datepicker.spec.ts:78:7 › core-datepicker › resets value when date-attribute is removed:
packages/core-datepicker/core-datepicker.spec.ts#L80
1) [firefox] › core-datepicker/core-datepicker.spec.ts:78:7 › core-datepicker › resets value when date-attribute is removed
Error: locator.evaluate: Target closed
=========================== logs ===========================
waiting for getByTestId('core-datepicker')
============================================================
78 | test('resets value when date-attribute is removed', async ({ page }) => {
79 | await page.evaluate(setComponentTemplate, ({ componentId: 'core-datepicker', templateId: 'table-template' }))
> 80 | await coreDatepicker.evaluate((node) => node.setAttribute('date', 'now'))
| ^
81 | const now = new Date()
82 | await expect(coreDatepicker).toHaveJSProperty('year', now.getUTCFullYear().toString())
83 | await expect(coreDatepicker.getByRole('button')).toHaveCount(42)
at /Users/runner/work/core-components/core-components/packages/core-datepicker/core-datepicker.spec.ts:80:26
|
[firefox] › core-datepicker/core-datepicker.spec.ts:78:7 › core-datepicker › resets value when date-attribute is removed:
packages/core-datepicker/core-datepicker.spec.ts#L1
1) [firefox] › core-datepicker/core-datepicker.spec.ts:78:7 › core-datepicker › resets value when date-attribute is removed
Pending operations:
- locator.evaluate at packages/core-datepicker/core-datepicker.spec.ts:80:26
|
[firefox] › core-datepicker/core-datepicker.spec.ts:78:7 › core-datepicker › resets value when date-attribute is removed:
packages/core-datepicker/core-datepicker.spec.ts#L1
1) [firefox] › core-datepicker/core-datepicker.spec.ts:78:7 › core-datepicker › resets value when date-attribute is removed
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Test timeout of 30000ms exceeded.
|
[firefox] › core-datepicker/core-datepicker.spec.ts:78:7 › core-datepicker › resets value when date-attribute is removed:
packages/core-datepicker/core-datepicker.spec.ts#L1
1) [firefox] › core-datepicker/core-datepicker.spec.ts:78:7 › core-datepicker › resets value when date-attribute is removed
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Pending operations:
- page.evaluate at packages/core-datepicker/core-datepicker.spec.ts:79:16
|
[firefox] › core-datepicker/core-datepicker.spec.ts:78:7 › core-datepicker › resets value when date-attribute is removed:
packages/core-datepicker/core-datepicker.spec.ts#L80
1) [firefox] › core-datepicker/core-datepicker.spec.ts:78:7 › core-datepicker › resets value when date-attribute is removed
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: locator.evaluate: Target page, context or browser has been closed
78 | test('resets value when date-attribute is removed', async ({ page }) => {
79 | await page.evaluate(setComponentTemplate, ({ componentId: 'core-datepicker', templateId: 'table-template' }))
> 80 | await coreDatepicker.evaluate((node) => node.setAttribute('date', 'now'))
| ^
81 | const now = new Date()
82 | await expect(coreDatepicker).toHaveJSProperty('year', now.getUTCFullYear().toString())
83 | await expect(coreDatepicker.getByRole('button')).toHaveCount(42)
at /Users/runner/work/core-components/core-components/packages/core-datepicker/core-datepicker.spec.ts:80:26
|
[firefox] › core-datepicker/core-datepicker.spec.ts:116:7 › core-datepicker › populates empty select with months:
packages/core-datepicker/core-datepicker.spec.ts#L1
2) [firefox] › core-datepicker/core-datepicker.spec.ts:116:7 › core-datepicker › populates empty select with months
Test timeout of 30000ms exceeded.
|
[firefox] › core-datepicker/core-datepicker.spec.ts:116:7 › core-datepicker › populates empty select with months:
packages/core-datepicker/core-datepicker.spec.ts#L118
2) [firefox] › core-datepicker/core-datepicker.spec.ts:116:7 › core-datepicker › populates empty select with months
Error: locator.click: Target closed
=========================== logs ===========================
waiting for getByTestId('core-datepicker').getByRole('combobox')
============================================================
116 | test('populates empty select with months', async ({ page }) => {
117 | await page.evaluate(setComponentTemplate, ({ componentId: 'core-datepicker', templateId: 'select-template' }))
> 118 | await coreDatepicker.getByRole('combobox').click()
| ^
119 | await expect(coreDatepicker.getByRole('combobox').getByRole('option')).toHaveCount(12)
120 | const optionValue = (index: number) => `y-${index}-d`
121 | await expect(coreDatepicker.getByText('januar')).toHaveJSProperty('value', optionValue(1))
at /Users/runner/work/core-components/core-components/packages/core-datepicker/core-datepicker.spec.ts:118:48
|
[firefox] › core-datepicker/core-datepicker.spec.ts:116:7 › core-datepicker › populates empty select with months:
packages/core-datepicker/core-datepicker.spec.ts#L1
2) [firefox] › core-datepicker/core-datepicker.spec.ts:116:7 › core-datepicker › populates empty select with months
Pending operations:
- locator.click at packages/core-datepicker/core-datepicker.spec.ts:118:48
|
[firefox] › core-datepicker/core-datepicker.spec.ts:116:7 › core-datepicker › populates empty select with months:
packages/core-datepicker/core-datepicker.spec.ts#L1
2) [firefox] › core-datepicker/core-datepicker.spec.ts:116:7 › core-datepicker › populates empty select with months
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Test timeout of 30000ms exceeded.
|
🎭 Playwright Run Summary
30 failed
[firefox] › core-datepicker/core-datepicker.spec.ts:78:7 › core-datepicker › resets value when date-attribute is removed
[firefox] › core-datepicker/core-datepicker.spec.ts:116:7 › core-datepicker › populates empty select with months
[firefox] › core-datepicker/core-datepicker.spec.ts:145:7 › core-datepicker › populates empty table
[firefox] › core-datepicker/core-datepicker.spec.ts:158:7 › core-datepicker › marks today's date in table
[firefox] › core-datepicker/core-datepicker.spec.ts:166:7 › core-datepicker › changes date on day clicked
[firefox] › core-datepicker/core-datepicker.spec.ts:174:7 › core-datepicker › changes date and focus on keyboard navigation as expected in adjacent table
[firefox] › core-datepicker/core-datepicker.spec.ts:183:7 › core-datepicker › changes month names
[firefox] › core-datepicker/core-datepicker.spec.ts:193:7 › core-datepicker › changes day names
[firefox] › core-datepicker/core-datepicker.spec.ts:202:7 › core-datepicker › disables elements from function
[firefox] › core-datepicker/core-datepicker.spec.ts:226:7 › core-datepicker › triggers click day event
[firefox] › core-datepicker/core-datepicker.spec.ts:236:7 › core-datepicker › does not trigger change event when clicking selected date
[firefox] › core-datepicker/core-datepicker.spec.ts:246:7 › core-datepicker › does trigger change event when clicking selected date
[firefox] › core-datepicker/core-datepicker.spec.ts:253:7 › core-datepicker › has month enabled if one day is disabled
[firefox] › core-datepicker/core-datepicker.spec.ts:266:7 › core-datepicker › has month disabled if all days are disabled
[firefox] › core-datepicker/core-datepicker.spec.ts:277:7 › core-datepicker › selects first available date in month
[webkit] › core-datepicker/core-datepicker.spec.ts:78:7 › core-datepicker › resets value when date-attribute is removed
[webkit] › core-datepicker/core-datepicker.spec.ts:116:7 › core-datepicker › populates empty select with months
[webkit] › core-datepicker/core-datepicker.spec.ts:145:7 › core-datepicker › populates empty table
[webkit] › core-datepicker/core-datepicker.spec.ts:158:7 › core-datepicker › marks today's date in table
[webkit] › core-datepicker/core-datepicker.spec.ts:166:7 › core-datepicker › changes date on day clicked
[webkit] › core-datepicker/core-datepicker.spec.ts:174:7 › core-datepicker › changes date and focus on keyboard navigation as expected in adjacent table
[webkit] › core-datepicker/core-datepicker.spec.ts:183:7 › core-datepicker › changes month names
[webkit] › core-datepicker/core-datepicker.spec.ts:193:7 › core-datepicker › changes day names ─
[webkit] › core-datepicker/core-datepicker.spec.ts:202:7 › core-datepicker › disables elements from function
[webkit] › core-datepicker/core-datepicker.spec.ts:226:7 › core-datepicker › triggers click day event
[webkit] › core-datepicker/core-datepicker.spec.ts:236:7 › core-datepicker › does not trigger change event when clicking selected date
[webkit] › core-datepicker/core-datepicker.spec.ts:246:7 › core-datepicker › does trigger change event when clicking selected date
[webkit] › core-datepicker/core-datepicker.spec.ts:253:7 › core-datepicker › has month enabled if one day is disabled
[webkit] › core-datepicker/core-datepicker.spec.ts:266:7 › core-datepicker › has month disabled if all days are disabled
[webkit] › core-datepicker/core-datepicker.spec.ts:277:7 › core-datepicker › selects first available date in month
3 skipped
123 passed (43.7m)
|
Artifacts
Produced during runtime
Name | Size | |
---|---|---|
playwright-report
Expired
|
3.27 MB |
|