fix: implement admin permissions #1431
Annotations
10 errors, 1 warning, and 1 notice
pwa/tests/admin/BooksList.spec.ts#L12
1) [chromium] › admin/BooksList.spec.ts:10:7 › Admin books list @admin › I can navigate through the list using the pagination @READ
Error: Timed out 10000ms waiting for expect(locator).toContainText(expected)
Locator: locator('.MuiTablePagination-displayedRows')
Expected string: "1-10 of"
Received: <element(s) not found>
Call log:
- expect.toContainText with timeout 10000ms
- waiting for locator('.MuiTablePagination-displayedRows')
10 | test("I can navigate through the list using the pagination @READ", async ({ bookPage, page }) => {
11 | // test list display
> 12 | await expect(page.locator(".MuiTablePagination-displayedRows")).toContainText(`1-${nbItemsPerPage} of`);
| ^
13 | await expect(page.locator(".datagrid-body tr")).toHaveCount(nbItemsPerPage);
14 |
15 | // test pagination display
at /home/runner/work/demo/demo/pwa/tests/admin/BooksList.spec.ts:12:69
|
pwa/tests/admin/BooksList.spec.ts#L12
1) [chromium] › admin/BooksList.spec.ts:10:7 › Admin books list @admin › I can navigate through the list using the pagination @READ
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: Timed out 10000ms waiting for expect(locator).toContainText(expected)
Locator: locator('.MuiTablePagination-displayedRows')
Expected string: "1-10 of"
Received: <element(s) not found>
Call log:
- expect.toContainText with timeout 10000ms
- waiting for locator('.MuiTablePagination-displayedRows')
10 | test("I can navigate through the list using the pagination @READ", async ({ bookPage, page }) => {
11 | // test list display
> 12 | await expect(page.locator(".MuiTablePagination-displayedRows")).toContainText(`1-${nbItemsPerPage} of`);
| ^
13 | await expect(page.locator(".datagrid-body tr")).toHaveCount(nbItemsPerPage);
14 |
15 | // test pagination display
at /home/runner/work/demo/demo/pwa/tests/admin/BooksList.spec.ts:12:69
|
pwa/tests/admin/BooksList.spec.ts#L1
2) [chromium] › admin/BooksList.spec.ts:53:7 › Admin books list @admin › I can filter the list @READ
Test timeout of 45000ms exceeded.
|
pwa/tests/admin/pages/BookPage.ts#L27
2) [chromium] › admin/BooksList.spec.ts:53:7 › Admin books list @admin › I can filter the list @READ
Error: locator.click: Test timeout of 45000ms exceeded.
Call log:
- waiting for getByLabel('Add filter')
at admin/pages/BookPage.ts:27
25 | public async filter(filters: FiltersProps) {
26 | if (filters.author) {
> 27 | await this.page.getByLabel("Add filter").click();
| ^
28 | await this.page.getByRole("menu").getByText("Author").waitFor({ state: "visible" });
29 | await this.page.getByRole("menu").getByText("Author").click();
30 | await this.page.getByRole("textbox", { name: "Author" }).fill(filters.author);
at BookPage.filter (/home/runner/work/demo/demo/pwa/tests/admin/pages/BookPage.ts:27:48)
at /home/runner/work/demo/demo/pwa/tests/admin/BooksList.spec.ts:55:20
|
pwa/tests/admin/BooksList.spec.ts#L1
2) [chromium] › admin/BooksList.spec.ts:53:7 › Admin books list @admin › I can filter the list @READ
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Test timeout of 45000ms exceeded.
|
pwa/tests/admin/pages/BookPage.ts#L27
2) [chromium] › admin/BooksList.spec.ts:53:7 › Admin books list @admin › I can filter the list @READ
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: locator.click: Test timeout of 45000ms exceeded.
Call log:
- waiting for getByLabel('Add filter')
at admin/pages/BookPage.ts:27
25 | public async filter(filters: FiltersProps) {
26 | if (filters.author) {
> 27 | await this.page.getByLabel("Add filter").click();
| ^
28 | await this.page.getByRole("menu").getByText("Author").waitFor({ state: "visible" });
29 | await this.page.getByRole("menu").getByText("Author").click();
30 | await this.page.getByRole("textbox", { name: "Author" }).fill(filters.author);
at BookPage.filter (/home/runner/work/demo/demo/pwa/tests/admin/pages/BookPage.ts:27:48)
at /home/runner/work/demo/demo/pwa/tests/admin/BooksList.spec.ts:55:20
|
pwa/tests/admin/BooksList.spec.ts#L1
3) [chromium] › admin/BooksList.spec.ts:78:7 › Admin books list @admin › I can sort the list by title @READ
Test timeout of 45000ms exceeded.
|
pwa/tests/admin/BooksList.spec.ts#L79
3) [chromium] › admin/BooksList.spec.ts:78:7 › Admin books list @admin › I can sort the list by title @READ
Error: locator.click: Test timeout of 45000ms exceeded.
Call log:
- waiting for getByText('Title')
77 |
78 | test("I can sort the list by title @READ", async ({ bookPage, page }) => {
> 79 | await page.getByText("Title").click();
| ^
80 | await expect(await bookPage.getDefaultBook()).not.toBeVisible();
81 | });
82 |
at /home/runner/work/demo/demo/pwa/tests/admin/BooksList.spec.ts:79:35
|
pwa/tests/admin/BooksList.spec.ts#L1
3) [chromium] › admin/BooksList.spec.ts:78:7 › Admin books list @admin › I can sort the list by title @READ
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Test timeout of 45000ms exceeded.
|
pwa/tests/admin/BooksList.spec.ts#L79
3) [chromium] › admin/BooksList.spec.ts:78:7 › Admin books list @admin › I can sort the list by title @READ
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: locator.click: Test timeout of 45000ms exceeded.
Call log:
- waiting for getByText('Title')
77 |
78 | test("I can sort the list by title @READ", async ({ bookPage, page }) => {
> 79 | await page.getByText("Title").click();
| ^
80 | await expect(await bookPage.getDefaultBook()).not.toBeVisible();
81 | });
82 |
at /home/runner/work/demo/demo/pwa/tests/admin/BooksList.spec.ts:79:35
|
pwa/[chromium] › BooksList.spec.ts#L1
pwa/[chromium] › BooksList.spec.ts took 16.3s
|
4 failed
[chromium] › admin/BooksList.spec.ts:10:7 › Admin books list @admin › I can navigate through the list using the pagination @READ
[chromium] › admin/BooksList.spec.ts:53:7 › Admin books list @admin › I can filter the list @READ
[chromium] › admin/BooksList.spec.ts:78:7 › Admin books list @admin › I can sort the list by title @READ
[chromium] › admin/BooksList.spec.ts:83:7 › Admin books list @admin › I can get to a book page from the list @READ
21 passed (5.8m)
|
This job failed
Loading