Create E2E tests for the API Getting Started, documentation pages #1964
Annotations
3 errors, 1 warning, and 1 notice
frontend-react/e2e/pages/daily-data.ts#L195
1) [firefox] › spec/all/daily-data-page.spec.ts:610:17 › Daily Data page › admin user › with org selected › table › has correct headers
Error: Timed out 5000ms waiting for expect(locator).toHaveText(expected)
Locator: locator('.usa-table th').first()
Expected pattern: /Report ID/
Received: <element(s) not found>
Call log:
- expect.toHaveText with timeout 5000ms
- waiting for locator('.usa-table th').first()
at pages/daily-data.ts:195
193 |
194 | export async function tableHeaders(page: Page) {
> 195 | await expect(page.locator(".usa-table th").nth(0)).toHaveText(/Report ID/);
| ^
196 | await expect(page.locator(".usa-table th").nth(1)).toHaveText(/Time received/);
197 | await expect(page.locator(".usa-table th").nth(2)).toHaveText(/File available until/);
198 | await expect(page.locator(".usa-table th").nth(3)).toHaveText(/Items/);
at tableHeaders (/home/runner/work/prime-reportstream/prime-reportstream/frontend-react/e2e/pages/daily-data.ts:195:56)
at /home/runner/work/prime-reportstream/prime-reportstream/frontend-react/e2e/spec/all/daily-data-page.spec.ts:611:27
|
frontend-react/e2e/spec/all/daily-data-page.spec.ts#L662
2) [webkit] › spec/all/daily-data-page.spec.ts:661:17 › Daily Data page › receiver user › filter › onLoad › 'From' date does not have a value
Error: Timed out 5000ms waiting for expect(locator).toBeAttached()
Locator: locator('#start-date')
Expected: attached
Received: <element(s) not found>
Call log:
- expect.toBeAttached with timeout 5000ms
- waiting for locator('#start-date')
660 |
661 | test("'From' date does not have a value", async ({ dailyDataPage }) => {
> 662 | await expect(startDate(dailyDataPage.page)).toBeAttached();
| ^
663 | await expect(startDate(dailyDataPage.page)).toHaveValue("");
664 | });
665 |
at /home/runner/work/prime-reportstream/prime-reportstream/frontend-react/e2e/spec/all/daily-data-page.spec.ts:662:65
|
frontend-react/e2e/spec/all/daily-data-page.spec.ts#L1003
3) [webkit] › spec/all/daily-data-page.spec.ts:984:17 › Daily Data page › receiver user › filter › no receiver selected › with 'From' date, 'To' date, 'Start time'
Error: Timed out 5000ms waiting for expect(locator).toContainText(expected)
Locator: getByTestId('filter-status')
Expected string: " Showing all data for: 08/12/2024–08/26/2024, 9:00am–11:59pm"
Received string: " Showing all data for: 12:00am–11:59pm"
Call log:
- expect.toContainText with timeout 5000ms
- waiting for getByTestId('filter-status')
- locator resolved to <div class="margin-left-2" data-testid="filter-status">…</div>
- unexpected value " Showing all data for: 12:00am–11:59pm"
- locator resolved to <div class="margin-left-2" data-testid="filter-status">…</div>
- unexpected value " Showing all data for: 12:00am–11:59pm"
- locator resolved to <div class="margin-left-2" data-testid="filter-status">…</div>
- unexpected value " Showing all data for: 12:00am–11:59pm"
- locator resolved to <div class="margin-left-2" data-testid="filter-status">…</div>
- unexpected value " Showing all data for: 12:00am–11:59pm"
- locator resolved to <div class="margin-left-2" data-testid="filter-status">…</div>
- unexpected value " Showing all data for: 12:00am–11:59pm"
- locator resolved to <div class="margin-left-2" data-testid="filter-status">…</div>
- unexpected value " Showing all data for: 12:00am–11:59pm"
- locator resolved to <div class="margin-left-2" data-testid="filter-status">…</div>
- unexpected value " Showing all data for: 12:00am–11:59pm"
- locator resolved to <div class="margin-left-2" data-testid="filter-status">…</div>
- unexpected value " Showing all data for: 12:00am–11:59pm"
- locator resolved to <div class="margin-left-2" data-testid="filter-status">…</div>
- unexpected value " Showing all data for: 12:00am–11:59pm"
1001 | `${defaultStartTime}–${"11:59pm"}`,
1002 | ]);
> 1003 | await expect(dailyDataPage.page.getByTestId("filter-status")).toContainText(filterStatusText);
| ^
1004 | });
1005 |
1006 | test("with 'From' date, 'To' date, 'End time'", async ({ dailyDataPage }) => {
at /home/runner/work/prime-reportstream/prime-reportstream/frontend-react/e2e/spec/all/daily-data-page.spec.ts:1003:83
|
frontend-react/[setup] › helpers/auth.setup.ts#L1
frontend-react/[setup] › helpers/auth.setup.ts took 1.3m
|
3 flaky
[firefox] › spec/all/daily-data-page.spec.ts:610:17 › Daily Data page › admin user › with org selected › table › has correct headers
[webkit] › spec/all/daily-data-page.spec.ts:661:17 › Daily Data page › receiver user › filter › onLoad › 'From' date does not have a value
[webkit] › spec/all/daily-data-page.spec.ts:984:17 › Daily Data page › receiver user › filter › no receiver selected › with 'From' date, 'To' date, 'Start time'
79 skipped
1012 passed (5.3m)
|
This job succeeded
Loading