Skip to content

Update Demo

Update Demo #815

Re-run triggered September 19, 2023 13:38
Status Failure
Total duration 4m 48s
Artifacts 1
This run and associated checks have been archived and are scheduled for deletion. Learn more about checks retention

ci.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

7 errors and 1 notice
[chromium] › admin/BookCreate.spec.ts:30:7 › Create a book @admin › I cannot create a book with an already used Open Library value @read: pwa/tests/admin/BookCreate.spec.ts#L47
1) [chromium] › admin/BookCreate.spec.ts:30:7 › Create a book @admin › I cannot create a book with an already used Open Library value @READ Error: Timed out 5000ms waiting for expect(received).toBeVisible() Call log: - expect.toBeVisible with timeout 5000ms - waiting for getByText('This value is already used.') 45 | // submit form 46 | await page.getByRole("button", { name: "Save", exact: true }).click(); > 47 | await expect(page.getByText("This value is already used.")).toBeVisible(); | ^ 48 | }); 49 | }); 50 | at /home/runner/work/demo/demo/pwa/tests/admin/BookCreate.spec.ts:47:65
[chromium] › admin/BookCreate.spec.ts:30:7 › Create a book @admin › I cannot create a book with an already used Open Library value @read: pwa/tests/admin/BookCreate.spec.ts#L47
1) [chromium] › admin/BookCreate.spec.ts:30:7 › Create a book @admin › I cannot create a book with an already used Open Library value @READ Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── Error: Timed out 5000ms waiting for expect(received).toBeVisible() Call log: - expect.toBeVisible with timeout 5000ms - waiting for getByText('This value is already used.') 45 | // submit form 46 | await page.getByRole("button", { name: "Save", exact: true }).click(); > 47 | await expect(page.getByText("This value is already used.")).toBeVisible(); | ^ 48 | }); 49 | }); 50 | at /home/runner/work/demo/demo/pwa/tests/admin/BookCreate.spec.ts:47:65
[chromium] › admin/ReviewsList.spec.ts:54:7 › Admin reviews list @admin › I can filter the list @read: pwa/tests/admin/pages/ReviewPage.ts#L28
2) [chromium] › admin/ReviewsList.spec.ts:54:7 › Admin reviews list @admin › I can filter the list @READ Error: locator.fill: Error: strict mode violation: getByLabel('User') resolved to 2 elements: 1) <input value="" id="user" name="user" type="text" role=…/> aka getByRole('combobox', { name: 'User' }) 2) <ul role="listbox" id="user-listbox" aria-labelledby…>…</ul> aka getByRole('listbox', { name: 'User' }) =========================== logs =========================== waiting for getByLabel('User') ============================================================ at admin/pages/ReviewPage.ts:28 26 | await this.page.getByRole("menu").getByText("User").waitFor({ state: "visible" }); 27 | await this.page.getByRole("menu").getByText("User").click(); > 28 | await this.page.getByLabel("User").fill(filters.user); | ^ 29 | await this.page.getByRole("listbox").getByText(filters.user, { exact: true }).click(); 30 | await this.page.waitForResponse(/\/reviews/); 31 | } at ReviewPage.filter (/home/runner/work/demo/demo/pwa/tests/admin/pages/ReviewPage.ts:28:42) at /home/runner/work/demo/demo/pwa/tests/admin/ReviewsList.spec.ts:72:5
[chromium] › admin/ReviewsList.spec.ts:54:7 › Admin reviews list @admin › I can filter the list @read: pwa/tests/admin/pages/ReviewPage.ts#L28
2) [chromium] › admin/ReviewsList.spec.ts:54:7 › Admin reviews list @admin › I can filter the list @READ Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── Error: locator.fill: Error: strict mode violation: getByLabel('User') resolved to 2 elements: 1) <input value="" id="user" name="user" type="text" role=…/> aka getByRole('combobox', { name: 'User' }) 2) <ul role="listbox" id="user-listbox" aria-labelledby…>…</ul> aka getByRole('listbox', { name: 'User' }) =========================== logs =========================== waiting for getByLabel('User') ============================================================ at admin/pages/ReviewPage.ts:28 26 | await this.page.getByRole("menu").getByText("User").waitFor({ state: "visible" }); 27 | await this.page.getByRole("menu").getByText("User").click(); > 28 | await this.page.getByLabel("User").fill(filters.user); | ^ 29 | await this.page.getByRole("listbox").getByText(filters.user, { exact: true }).click(); 30 | await this.page.waitForResponse(/\/reviews/); 31 | } at ReviewPage.filter (/home/runner/work/demo/demo/pwa/tests/admin/pages/ReviewPage.ts:28:42) at /home/runner/work/demo/demo/pwa/tests/admin/ReviewsList.spec.ts:56:5
[chromium] › BooksList.spec.ts:93:7 › Books list › I can filter the list @read: pwa/tests/BooksList.spec.ts#L135
3) [chromium] › BooksList.spec.ts:93:7 › Books list › I can filter the list @READ ──────────────── Error: Timed out 5000ms waiting for expect(received).toBeVisible() Call log: - expect.toBeVisible with timeout 5000ms - waiting for getByTestId('book').filter({ hasText: 'Hyperion' }).filter({ hasText: 'Dan Simmons' }).first() 133 | await expect(page.getByTestId("book").or(page.getByTestId("loading"))).toHaveCount(1); 134 | await expect(page.getByTestId("pagination")).toHaveCount(0); > 135 | await expect(await bookPage.getDefaultBook()).toBeVisible(); | ^ 136 | }); 137 | 138 | test("I can sort the list @READ", async ({ bookPage, page }) => { at /home/runner/work/demo/demo/pwa/tests/BooksList.spec.ts:135:51
[chromium] › BooksList.spec.ts:93:7 › Books list › I can filter the list @read: pwa/tests/BooksList.spec.ts#L135
3) [chromium] › BooksList.spec.ts:93:7 › Books list › I can filter the list @READ ──────────────── Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── Error: Timed out 5000ms waiting for expect(received).toBeVisible() Call log: - expect.toBeVisible with timeout 5000ms - waiting for getByTestId('book').filter({ hasText: 'Hyperion' }).filter({ hasText: 'Dan Simmons' }).first() 133 | await expect(page.getByTestId("book").or(page.getByTestId("loading"))).toHaveCount(1); 134 | await expect(page.getByTestId("pagination")).toHaveCount(0); > 135 | await expect(await bookPage.getDefaultBook()).toBeVisible(); | ^ 136 | }); 137 | 138 | test("I can sort the list @READ", async ({ bookPage, page }) => { at /home/runner/work/demo/demo/pwa/tests/BooksList.spec.ts:135:51
E2E Tests
Process completed with exit code 1.
🎭 Playwright Run Summary
3 failed [chromium] › admin/BookCreate.spec.ts:30:7 › Create a book @admin › I cannot create a book with an already used Open Library value @READ [chromium] › admin/ReviewsList.spec.ts:54:7 › Admin reviews list @admin › I can filter the list @READ [chromium] › BooksList.spec.ts:93:7 › Books list › I can filter the list @READ ───────────────── 23 passed (1.7m)

Artifacts

Produced during runtime
Name Size
playwright-screenshots Expired
25.4 MB