fix: fixtures load #871
Annotations
20 errors and 2 notices
[chromium] › admin/BookCreate.spec.ts:9:7 › Create a book @admin › I can create a book @write:
pwa/tests/admin/BookCreate.spec.ts#L26
1) [chromium] › admin/BookCreate.spec.ts:9:7 › Create a book @admin › I can create a book @Write ─
Error: Timed out 5000ms waiting for expect(locator).not.toBeAttached()
Locator: getByLabel('Open Library Book')
Expected: not attached
Received: attached
Call log:
- expect.not.toBeAttached with timeout 5000ms
- waiting for getByLabel('Open Library Book')
- locator resolved to <input id=":r5:" name="book" type="text" role="combobox…/>
- unexpected value "true"
- locator resolved to <input id=":r5:" name="book" type="text" role="combobox…/>
- unexpected value "true"
- locator resolved to <input id=":r5:" name="book" type="text" role="combobox…/>
- unexpected value "true"
- locator resolved to <input id=":r5:" name="book" type="text" role="combobox…/>
- unexpected value "true"
- locator resolved to <input id=":r5:" name="book" type="text" role="combobox…/>
- unexpected value "true"
- locator resolved to <input id=":r5:" name="book" type="text" role="combobox…/>
- unexpected value "true"
- locator resolved to <input id=":r5:" name="book" type="text" role="combobox…/>
- unexpected value "true"
- locator resolved to <input id=":r5:" name="book" type="text" role="combobox…/>
- unexpected value "true"
- locator resolved to <input id=":r5:" name="book" type="text" role="combobox…/>
- unexpected value "true"
24 | // submit form
25 | await page.getByRole("button", { name: "Save", exact: true }).click();
> 26 | await expect(page.getByLabel("Open Library Book")).not.toBeAttached();
| ^
27 | await expect(page.getByText("Element created")).toBeVisible();
28 | });
29 |
at /home/runner/work/demo/demo/pwa/tests/admin/BookCreate.spec.ts:26:60
|
[chromium] › admin/BookCreate.spec.ts:9:7 › Create a book @admin › I can create a book @write:
pwa/tests/admin/BookCreate.spec.ts#L26
1) [chromium] › admin/BookCreate.spec.ts:9:7 › Create a book @admin › I can create a book @Write ─
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: Timed out 5000ms waiting for expect(locator).not.toBeAttached()
Locator: getByLabel('Open Library Book')
Expected: not attached
Received: attached
Call log:
- expect.not.toBeAttached with timeout 5000ms
- waiting for getByLabel('Open Library Book')
- locator resolved to <input id=":r5:" name="book" type="text" role="combobox…/>
- unexpected value "true"
- locator resolved to <input id=":r5:" name="book" type="text" role="combobox…/>
- unexpected value "true"
- locator resolved to <input id=":r5:" name="book" type="text" role="combobox…/>
- unexpected value "true"
- locator resolved to <input id=":r5:" name="book" type="text" role="combobox…/>
- unexpected value "true"
- locator resolved to <input id=":r5:" name="book" type="text" role="combobox…/>
- unexpected value "true"
- locator resolved to <input id=":r5:" name="book" type="text" role="combobox…/>
- unexpected value "true"
- locator resolved to <input id=":r5:" name="book" type="text" role="combobox…/>
- unexpected value "true"
- locator resolved to <input id=":r5:" name="book" type="text" role="combobox…/>
- unexpected value "true"
- locator resolved to <input id=":r5:" name="book" type="text" role="combobox…/>
- unexpected value "true"
24 | // submit form
25 | await page.getByRole("button", { name: "Save", exact: true }).click();
> 26 | await expect(page.getByLabel("Open Library Book")).not.toBeAttached();
| ^
27 | await expect(page.getByText("Element created")).toBeVisible();
28 | });
29 |
at /home/runner/work/demo/demo/pwa/tests/admin/BookCreate.spec.ts:26:60
|
[chromium] › admin/BookEdit.spec.ts:9:7 › Edit a book @admin › I can edit a book @write:
pwa/tests/admin/BookEdit.spec.ts#L4
2) [chromium] › admin/BookEdit.spec.ts:9:7 › Edit a book @admin › I can edit a book @Write ───────
Test timeout of 30000ms exceeded while running "beforeEach" hook.
2 |
3 | test.describe("Edit a book @admin", () => {
> 4 | test.beforeEach(async ({ bookPage, page }) => {
| ^
5 | await bookPage.gotoList();
6 | await page.locator(".datagrid-body tr").last().getByRole("link", { name: "Edit", exact: true }).click();
7 | });
at /home/runner/work/demo/demo/pwa/tests/admin/BookEdit.spec.ts:4:8
|
[chromium] › admin/BookEdit.spec.ts:9:7 › Edit a book @admin › I can edit a book @write:
pwa/tests/admin/BookEdit.spec.ts#L6
2) [chromium] › admin/BookEdit.spec.ts:9:7 › Edit a book @admin › I can edit a book @Write ───────
Error: locator.click: Page closed
=========================== logs ===========================
waiting for locator('.datagrid-body tr').last().getByRole('link', { name: 'Edit', exact: true })
============================================================
4 | test.beforeEach(async ({ bookPage, page }) => {
5 | await bookPage.gotoList();
> 6 | await page.locator(".datagrid-body tr").last().getByRole("link", { name: "Edit", exact: true }).click();
| ^
7 | });
8 |
9 | test("I can edit a book @Write", async ({ page }) => {
at /home/runner/work/demo/demo/pwa/tests/admin/BookEdit.spec.ts:6:101
|
[chromium] › admin/BookEdit.spec.ts:9:7 › Edit a book @admin › I can edit a book @write:
pwa/tests/admin/BookEdit.spec.ts#L4
2) [chromium] › admin/BookEdit.spec.ts:9:7 › Edit a book @admin › I can edit a book @Write ───────
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Test timeout of 30000ms exceeded while running "beforeEach" hook.
2 |
3 | test.describe("Edit a book @admin", () => {
> 4 | test.beforeEach(async ({ bookPage, page }) => {
| ^
5 | await bookPage.gotoList();
6 | await page.locator(".datagrid-body tr").last().getByRole("link", { name: "Edit", exact: true }).click();
7 | });
at /home/runner/work/demo/demo/pwa/tests/admin/BookEdit.spec.ts:4:8
|
[chromium] › admin/BookEdit.spec.ts:9:7 › Edit a book @admin › I can edit a book @write:
pwa/tests/admin/BookEdit.spec.ts#L6
2) [chromium] › admin/BookEdit.spec.ts:9:7 › Edit a book @admin › I can edit a book @Write ───────
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: locator.click: Page closed
=========================== logs ===========================
waiting for locator('.datagrid-body tr').last().getByRole('link', { name: 'Edit', exact: true })
============================================================
4 | test.beforeEach(async ({ bookPage, page }) => {
5 | await bookPage.gotoList();
> 6 | await page.locator(".datagrid-body tr").last().getByRole("link", { name: "Edit", exact: true }).click();
| ^
7 | });
8 |
9 | test("I can edit a book @Write", async ({ page }) => {
at /home/runner/work/demo/demo/pwa/tests/admin/BookEdit.spec.ts:6:101
|
[chromium] › admin/BookEdit.spec.ts:30:7 › Edit a book @admin › I can delete a book @write:
pwa/tests/admin/BookEdit.spec.ts#L4
3) [chromium] › admin/BookEdit.spec.ts:30:7 › Edit a book @admin › I can delete a book @Write ────
Test timeout of 30000ms exceeded while running "beforeEach" hook.
2 |
3 | test.describe("Edit a book @admin", () => {
> 4 | test.beforeEach(async ({ bookPage, page }) => {
| ^
5 | await bookPage.gotoList();
6 | await page.locator(".datagrid-body tr").last().getByRole("link", { name: "Edit", exact: true }).click();
7 | });
at /home/runner/work/demo/demo/pwa/tests/admin/BookEdit.spec.ts:4:8
|
[chromium] › admin/BookEdit.spec.ts:30:7 › Edit a book @admin › I can delete a book @write:
pwa/tests/admin/BookEdit.spec.ts#L6
3) [chromium] › admin/BookEdit.spec.ts:30:7 › Edit a book @admin › I can delete a book @Write ────
Error: locator.click: Page closed
=========================== logs ===========================
waiting for locator('.datagrid-body tr').last().getByRole('link', { name: 'Edit', exact: true })
============================================================
4 | test.beforeEach(async ({ bookPage, page }) => {
5 | await bookPage.gotoList();
> 6 | await page.locator(".datagrid-body tr").last().getByRole("link", { name: "Edit", exact: true }).click();
| ^
7 | });
8 |
9 | test("I can edit a book @Write", async ({ page }) => {
at /home/runner/work/demo/demo/pwa/tests/admin/BookEdit.spec.ts:6:101
|
[chromium] › admin/BookEdit.spec.ts:30:7 › Edit a book @admin › I can delete a book @write:
pwa/tests/admin/BookEdit.spec.ts#L4
3) [chromium] › admin/BookEdit.spec.ts:30:7 › Edit a book @admin › I can delete a book @Write ────
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Test timeout of 30000ms exceeded while running "beforeEach" hook.
2 |
3 | test.describe("Edit a book @admin", () => {
> 4 | test.beforeEach(async ({ bookPage, page }) => {
| ^
5 | await bookPage.gotoList();
6 | await page.locator(".datagrid-body tr").last().getByRole("link", { name: "Edit", exact: true }).click();
7 | });
at /home/runner/work/demo/demo/pwa/tests/admin/BookEdit.spec.ts:4:8
|
[chromium] › admin/BookEdit.spec.ts:30:7 › Edit a book @admin › I can delete a book @write:
pwa/tests/admin/BookEdit.spec.ts#L6
3) [chromium] › admin/BookEdit.spec.ts:30:7 › Edit a book @admin › I can delete a book @Write ────
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: locator.click: Page closed
=========================== logs ===========================
waiting for locator('.datagrid-body tr').last().getByRole('link', { name: 'Edit', exact: true })
============================================================
4 | test.beforeEach(async ({ bookPage, page }) => {
5 | await bookPage.gotoList();
> 6 | await page.locator(".datagrid-body tr").last().getByRole("link", { name: "Edit", exact: true }).click();
| ^
7 | });
8 |
9 | test("I can edit a book @Write", async ({ page }) => {
at /home/runner/work/demo/demo/pwa/tests/admin/BookEdit.spec.ts:6:101
|
[chromium] › admin/BooksList.spec.ts:10:7 › Admin books list @admin › I can navigate through the list using the pagination @read:
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 5000ms waiting for expect(locator).toContainText(expected)
Locator: locator('.MuiTablePagination-displayedRows')
Expected string: "1-10 of"
Received string: ""
Call log:
- expect.toContainText with timeout 5000ms
- 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
|
[chromium] › admin/BooksList.spec.ts:10:7 › Admin books list @admin › I can navigate through the list using the pagination @read:
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 5000ms waiting for expect(locator).toContainText(expected)
Locator: locator('.MuiTablePagination-displayedRows')
Expected string: "1-10 of"
Received string: ""
Call log:
- expect.toContainText with timeout 5000ms
- 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
|
[chromium] › admin/BooksList.spec.ts:53:7 › Admin books list @admin › I can filter the list @read:
pwa/tests/admin/BooksList.spec.ts#L56
2) [chromium] › admin/BooksList.spec.ts:53:7 › Admin books list @admin › I can filter the list @READ
Error: Timed out 5000ms waiting for expect(locator).toHaveText(expected)
Locator: locator('.MuiTablePagination-displayedRows')
Expected string: "1-1 of 1"
Received string: ""
Call log:
- expect.toHaveText with timeout 5000ms
- waiting for locator('.MuiTablePagination-displayedRows')
54 | // filter by author
55 | await bookPage.filter({ author: "Dan Simmons" });
> 56 | await expect(page.locator(".MuiTablePagination-displayedRows")).toHaveText("1-1 of 1");
| ^
57 | await expect(page.locator(".datagrid-body tr")).toHaveCount(1);
58 | await expect(page.getByLabel("pagination navigation")).toHaveCount(0);
59 | await expect(await bookPage.getDefaultBook()).toBeVisible();
at /home/runner/work/demo/demo/pwa/tests/admin/BooksList.spec.ts:56:69
|
[chromium] › admin/BooksList.spec.ts:53:7 › Admin books list @admin › I can filter the list @read:
pwa/tests/admin/BooksList.spec.ts#L56
2) [chromium] › admin/BooksList.spec.ts:53:7 › Admin books list @admin › I can filter the list @READ
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: Timed out 5000ms waiting for expect(locator).toHaveText(expected)
Locator: locator('.MuiTablePagination-displayedRows')
Expected string: "1-1 of 1"
Received string: ""
Call log:
- expect.toHaveText with timeout 5000ms
- waiting for locator('.MuiTablePagination-displayedRows')
54 | // filter by author
55 | await bookPage.filter({ author: "Dan Simmons" });
> 56 | await expect(page.locator(".MuiTablePagination-displayedRows")).toHaveText("1-1 of 1");
| ^
57 | await expect(page.locator(".datagrid-body tr")).toHaveCount(1);
58 | await expect(page.getByLabel("pagination navigation")).toHaveCount(0);
59 | await expect(await bookPage.getDefaultBook()).toBeVisible();
at /home/runner/work/demo/demo/pwa/tests/admin/BooksList.spec.ts:56:69
|
[chromium] › admin/BooksList.spec.ts:78:7 › Admin books list @admin › I can sort the list by title @read:
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 30000ms exceeded.
|
[chromium] › admin/BooksList.spec.ts:78:7 › Admin books list @admin › I can sort the list by title @read:
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: Page closed
=========================== logs ===========================
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
|
[chromium] › admin/BooksList.spec.ts:78:7 › Admin books list @admin › I can sort the list by title @read:
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 30000ms exceeded.
|
[chromium] › admin/BooksList.spec.ts:78:7 › Admin books list @admin › I can sort the list by title @read:
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: Page closed
=========================== logs ===========================
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
|
[chromium] › admin/BooksList.spec.ts:83:7 › Admin books list @admin › I can get to a book page from the list @read:
pwa/tests/admin/BooksList.spec.ts#L1
4) [chromium] › admin/BooksList.spec.ts:83:7 › Admin books list @admin › I can get to a book page from the list @READ
Test timeout of 30000ms exceeded.
|
[chromium] › admin/BooksList.spec.ts:83:7 › Admin books list @admin › I can get to a book page from the list @read:
pwa/tests/admin/BooksList.spec.ts#L86
4) [chromium] › admin/BooksList.spec.ts:83:7 › Admin books list @admin › I can get to a book page from the list @READ
Error: locator.click: Page closed
=========================== logs ===========================
waiting for locator('.datagrid-body tr').filter({ hasText: 'Hyperion' }).getByRole('link', { name: 'Show' })
============================================================
84 | const [newPage] = await Promise.all([
85 | page.context().waitForEvent("page"),
> 86 | await (await bookPage.getDefaultBook()).getByRole("link", { name: "Show" }).click(),
| ^
87 | ]);
88 | await expect(newPage).toHaveURL(/\/books\/.*\/hyperion-dan-simmons$/);
89 | });
at /home/runner/work/demo/demo/pwa/tests/admin/BooksList.spec.ts:86:83
|
🎭 Playwright Run Summary
11 failed
[chromium] › admin/BookCreate.spec.ts:9:7 › Create a book @admin › I can create a book @Write ──
[chromium] › admin/BookEdit.spec.ts:9:7 › Edit a book @admin › I can edit a book @Write ────────
[chromium] › admin/BookEdit.spec.ts:30:7 › Edit a book @admin › I can delete a book @Write ─────
[chromium] › admin/BooksList.spec.ts:91:7 › Admin books list @admin › I can remove a book from the list @Write
[chromium] › admin/ReviewEdit.spec.ts:9:7 › Edit a review @admin › I can edit a review @Write ──
[chromium] › admin/ReviewEdit.spec.ts:32:7 › Edit a review @admin › I can delete a review @Write
[chromium] › admin/ReviewsList.spec.ts:79:7 › Admin reviews list @admin › I can remove a review from the list @Write
[chromium] › BookView.spec.ts:30:7 › Book view › I can bookmark the book @Write @login ─────────
[chromium] › BookView.spec.ts:137:7 › Book view › I can update my review on a book @Write @login
[chromium] › BookView.spec.ts:162:7 › Book view › I can delete my review on a book @Write @login
[chromium] › BookView.spec.ts:185:7 › Book view › I can add a review on a book @Write @login ───
|
🎭 Playwright Run Summary
16 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
[chromium] › admin/ReviewsList.spec.ts:10:7 › Admin reviews list @admin › I can navigate through the list using the pagination @READ
[chromium] › admin/ReviewsList.spec.ts:54:7 › Admin reviews list @admin › I can filter the list @READ
[chromium] › BookmarksList.spec.ts:10:7 › Bookmarks list › I can navigate through the list using the pagination @READ @login
[chromium] › BookmarksList.spec.ts:103:7 › Bookmarks list › I can go to the books store filtered by author @READ @login
[chromium] › BookmarksList.spec.ts:108:7 › Bookmarks list › I can go to a book @READ @login ────
[chromium] › BooksList.spec.ts:10:7 › Books list › I can navigate through the list using the pagination @READ
[chromium] › BooksList.spec.ts:93:7 › Books list › I can filter the list @READ ─────────────────
[chromium] › BooksList.spec.ts:138:7 › Books list › I can sort the list @READ ──────────────────
[chromium] › BookView.spec.ts:8:7 › Book view › I can see the book details @READ ───────────────
[chromium] › BookView.spec.ts:18:7 › Book view › I can go back to the books list through the breadcrumb @READ
[chromium] › BookView.spec.ts:24:7 › Book view › I can go back to the books list filtered by author through the breadcrumb @READ
[chromium] › BookView.spec.ts:54:7 › Book view › I can navigate through the book reviews @READ ─
9 passed (7.7m)
|
Artifacts
Produced during runtime
Name | Size | |
---|---|---|
playwright-screenshots
Expired
|
8.37 MB |
|