refactor: helper for session recording URL; fix test #3224
Annotations
4 errors and 1 notice
playwright/tests/status/status.spec.js#L45
1) [firefox] › status/status.spec.js:35:3 › site status › Doesn't render dismissed server statuses
Error: should have status
Timed out 5000ms waiting for expect(locator).toHaveCount(expected)
Locator: getByTestId('status-1')
Expected: 0
Received: 1
Call log:
- should have status with timeout 5000ms
- waiting for getByTestId('status-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"
- locator resolved to 1 element
- unexpected value "1"
- locator resolved to 1 element
- unexpected value "1"
43 | await page.goto('/')
44 | await page.evaluate(({ key, value }) => localStorage.setItem(key, value), { key: STATUS_STORAGE_KEY, value: JSON.stringify([status1.id]) })
> 45 | await expect(page.getByTestId(generateStatusTestId(status1.id)), 'should have status').toHaveCount(0)
| ^
46 | })
47 |
48 | test('Handles no server status', async ({ page }) => {
at /Users/runner/work/datatracker/datatracker/playwright/tests/status/status.spec.js:45:92
|
playwright/tests/status/status.spec.js#L45
1) [firefox] › status/status.spec.js:35:3 › site status › Doesn't render dismissed server statuses
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: should have status
Timed out 5000ms waiting for expect(locator).toHaveCount(expected)
Locator: getByTestId('status-1')
Expected: 0
Received: 1
Call log:
- should have status with timeout 5000ms
- waiting for getByTestId('status-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"
- locator resolved to 1 element
- unexpected value "1"
- locator resolved to 1 element
- unexpected value "1"
43 | await page.goto('/')
44 | await page.evaluate(({ key, value }) => localStorage.setItem(key, value), { key: STATUS_STORAGE_KEY, value: JSON.stringify([status1.id]) })
> 45 | await expect(page.getByTestId(generateStatusTestId(status1.id)), 'should have status').toHaveCount(0)
| ^
46 | })
47 |
48 | test('Handles no server status', async ({ page }) => {
at /Users/runner/work/datatracker/datatracker/playwright/tests/status/status.spec.js:45:92
|
playwright/tests/status/status.spec.js#L45
1) [firefox] › status/status.spec.js:35:3 › site status › Doesn't render dismissed server statuses
Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
Error: should have status
Timed out 5000ms waiting for expect(locator).toHaveCount(expected)
Locator: getByTestId('status-1')
Expected: 0
Received: 1
Call log:
- should have status with timeout 5000ms
- waiting for getByTestId('status-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"
- locator resolved to 1 element
- unexpected value "1"
- locator resolved to 1 element
- unexpected value "1"
43 | await page.goto('/')
44 | await page.evaluate(({ key, value }) => localStorage.setItem(key, value), { key: STATUS_STORAGE_KEY, value: JSON.stringify([status1.id]) })
> 45 | await expect(page.getByTestId(generateStatusTestId(status1.id)), 'should have status').toHaveCount(0)
| ^
46 | })
47 |
48 | test('Handles no server status', async ({ page }) => {
at /Users/runner/work/datatracker/datatracker/playwright/tests/status/status.spec.js:45:92
|
|
|
This job failed
Loading