refactor: use page objects to clean up tests and reduce flakyness #92
Annotations
6 errors and 1 notice
e2e/tests/pokerPage.spec.ts#L1
1) [chromium] › pokerPage.spec.ts:102:5 › should accept user and transfer moderator role ─────────
Test timeout of 30000ms exceeded.
|
e2e/pageobjects/JoinSessionDialog.ts#L16
1) [chromium] › pokerPage.spec.ts:102:5 › should accept user and transfer moderator role ─────────
Error: locator.click: Target closed
=========================== logs ===========================
waiting for getByRole('button', { name: 'Join' })
locator resolved to <button tabindex="0" type="button" class="MuiButtonBase-…>…</button>
attempting click action
waiting for element to be visible, enabled and stable
element was detached from the DOM, retrying
locator resolved to <button disabled tabindex="-1" type="button" class="MuiB…>Join</button>
attempting click action
waiting for element to be visible, enabled and stable
element is not enabled - waiting...
============================================================
at ../pageobjects/JoinSessionDialog.ts:16
14 | await this.gotoJoinSessionPage(urlWithRoomId, page);
15 | await page.getByRole("textbox").fill(username);
> 16 | await page.getByRole("button", { name: "Join" }).click();
| ^
17 | return page;
18 | }
19 |
at JoinSessionDialogPageObject.joinNewUser (/home/runner/work/retro/retro/e2e/pageobjects/JoinSessionDialog.ts:16:54)
at /home/runner/work/retro/retro/e2e/tests/pokerPage.spec.ts:109:19
|
e2e/tests/pokerPage.spec.ts#L1
1) [chromium] › pokerPage.spec.ts:102:5 › should accept user and transfer moderator role ─────────
Pending operations:
- locator.click at e2e/pageobjects/JoinSessionDialog.ts:16:54
|
e2e/tests/pokerPage.spec.ts#L1
2) [firefox] › pokerPage.spec.ts:102:5 › should accept user and transfer moderator role ──────────
Test timeout of 30000ms exceeded.
|
e2e/pageobjects/Header.ts#L49
2) [firefox] › pokerPage.spec.ts:102:5 › should accept user and transfer moderator role ──────────
Error: locator.click: Target closed
=========================== logs ===========================
waiting for getByRole('listitem').filter({ hasText: 'User 2' }).getByRole('button', { name: 'Transfer Moderator Role' })
============================================================
at ../pageobjects/Header.ts:49
47 | .filter({ hasText: username })
48 | .getByRole("button", { name: "Transfer Moderator Role" })
> 49 | .click();
| ^
50 | await this.page.getByRole("button", { name: "Yes, transfer" }).click();
51 | await this.page
52 | .getByRole("listitem")
at HeaderPageObject.transferModeratorRole (/home/runner/work/retro/retro/e2e/pageobjects/Header.ts:49:8)
at /home/runner/work/retro/retro/e2e/tests/pokerPage.spec.ts:113:16
|
e2e/tests/pokerPage.spec.ts#L1
2) [firefox] › pokerPage.spec.ts:102:5 › should accept user and transfer moderator role ──────────
Pending operations:
- locator.click at e2e/pageobjects/Header.ts:49:8
|
|
The logs for this run have expired and are no longer available.
Loading