Web E2E test #18
Annotations
8 errors, 5 warnings, and 1 notice
[chromium] › project/item/fields/geometryObject.spec.ts:16:1 › GeometryObject field creating and updating has succeeded:
web/e2e/project/item/fields/geometryObject.spec.ts#L6
1) [chromium] › project/item/fields/geometryObject.spec.ts:16:1 › GeometryObject field creating and updating has succeeded
Test timeout of 30000ms exceeded while running "beforeEach" hook.
4 | import { expect, test } from "@reearth-cms/e2e/utils";
5 |
> 6 | test.beforeEach(async ({ reearth, page }) => {
| ^
7 | await reearth.goto("/", { waitUntil: "domcontentloaded" });
8 | await createProject(page);
9 | await createModel(page);
at /home/runner/work/reearth-cms/reearth-cms/web/e2e/project/item/fields/geometryObject.spec.ts:6:6
|
[chromium] › project/item/fields/geometryObject.spec.ts:16:1 › GeometryObject field creating and updating has succeeded:
web/e2e/project/item/fields/geometryObject.spec.ts#L12
1) [chromium] › project/item/fields/geometryObject.spec.ts:16:1 › GeometryObject field creating and updating has succeeded
Test timeout of 30000ms exceeded while running "afterEach" hook.
10 | });
11 |
> 12 | test.afterEach(async ({ page }) => {
| ^
13 | await deleteProject(page);
14 | });
15 |
at /home/runner/work/reearth-cms/reearth-cms/web/e2e/project/item/fields/geometryObject.spec.ts:12:6
|
[chromium] › project/item/fields/geometryObject.spec.ts:16:1 › GeometryObject field creating and updating has succeeded:
web/e2e/utils/index.ts#L25
1) [chromium] › project/item/fields/geometryObject.spec.ts:16:1 › GeometryObject field creating and updating has succeeded
Error: page.goto: Test timeout of 30000ms exceeded.
Call log:
- navigating to "https://cms.test.reearth.dev/", waiting until "domcontentloaded"
at utils/index.ts:25
23 | token: getAccessToken(),
24 | async goto(url, options) {
> 25 | const res = await page.goto(url, options);
| ^
26 | if (this.token) {
27 | await page.evaluate(`window.REEARTH_E2E_ACCESS_TOKEN = ${JSON.stringify(this.token)};`);
28 | }
at Object.goto (/home/runner/work/reearth-cms/reearth-cms/web/e2e/utils/index.ts:25:32)
at /home/runner/work/reearth-cms/reearth-cms/web/e2e/project/item/fields/geometryObject.spec.ts:7:17
|
[chromium] › project/item/fields/geometryObject.spec.ts:16:1 › GeometryObject field creating and updating has succeeded:
web/e2e/project/utils/project.ts#L18
1) [chromium] › project/item/fields/geometryObject.spec.ts:16:1 › GeometryObject field creating and updating has succeeded
Error: locator.click: Test timeout of 30000ms exceeded.
Call log:
- waiting for getByText('Settings').first()
at project/utils/project.ts:18
16 |
17 | export async function deleteProject(page: Page) {
> 18 | await page.getByText("Settings").first().click();
| ^
19 | await page.getByRole("button", { name: "Delete Project" }).click();
20 | await page.getByRole("button", { name: "OK" }).click();
21 | await closeNotification(page);
at deleteProject (/home/runner/work/reearth-cms/reearth-cms/web/e2e/project/utils/project.ts:18:44)
at /home/runner/work/reearth-cms/reearth-cms/web/e2e/project/item/fields/geometryObject.spec.ts:13:9
|
[chromium] › project/item/metadata/url.spec.ts:74:1 › Url metadata editing has succeeded:
web/e2e/common/notification.ts#L7
2) [chromium] › project/item/metadata/url.spec.ts:74:1 › Url metadata editing has succeeded ──────
Error: Timed out 5000ms waiting for expect(locator).toHaveAttribute(expected)
Locator: getByRole('alert').last().getByRole('img')
Expected string: "check-circle"
Received: <element(s) not found>
Call log:
- expect.toHaveAttribute with timeout 5000ms
- waiting for getByRole('alert').last().getByRole('img')
- locator resolved to <span role="img" aria-label="close-circle" class="anticon anticon-close-circle ant-notification-notice-icon ant-notification-notice-icon-error">…</span>
- unexpected value "close-circle"
- locator resolved to <span role="img" aria-label="close-circle" class="anticon anticon-close-circle ant-notification-notice-icon ant-notification-notice-icon-error">…</span>
- unexpected value "close-circle"
at common/notification.ts:7
5 | export async function closeNotification(page: Page, isSuccess = true) {
6 | const text = isSuccess ? "check-circle" : "close-circle";
> 7 | await expect(page.getByRole("alert").last().getByRole("img")).toHaveAttribute("aria-label", text);
| ^
8 | await page
9 | .locator(".ant-notification-notice")
10 | .last()
at closeNotification (/home/runner/work/reearth-cms/reearth-cms/web/e2e/common/notification.ts:7:65)
at /home/runner/work/reearth-cms/reearth-cms/web/e2e/project/item/metadata/url.spec.ts:163:9
|
[chromium] › project/request.spec.ts:138:1 › Navigating between item and request has succeeded:
web/e2e/project/request.spec.ts#L1
3) [chromium] › project/request.spec.ts:138:1 › Navigating between item and request has succeeded
Test timeout of 30000ms exceeded.
|
[chromium] › project/request.spec.ts:138:1 › Navigating between item and request has succeeded:
web/e2e/common/notification.ts#L13
3) [chromium] › project/request.spec.ts:138:1 › Navigating between item and request has succeeded
Error: Timed out 5000ms waiting for expect(locator).toBeHidden()
Locator: getByRole('alert').last()
Expected: hidden
Received: visible
Call log:
- expect.toBeHidden with timeout 5000ms
- waiting for getByRole('alert').last()
- locator resolved to <div role="alert" class="ant-notification-notice-with-icon">…</div>
- unexpected value "visible"
- locator resolved to <div role="alert" class="ant-notification-notice-with-icon">…</div>
- unexpected value "visible"
- locator resolved to <div role="alert" class="ant-notification-notice-with-icon">…</div>
- unexpected value "visible"
- locator resolved to <div role="alert" class="ant-notification-notice-with-icon">…</div>
- unexpected value "visible"
- locator resolved to <div role="alert" class="ant-notification-notice-with-icon">…</div>
- unexpected value "visible"
- locator resolved to <div role="alert" class="ant-notification-notice-with-icon">…</div>
- unexpected value "visible"
- locator resolved to <div role="alert" class="ant-notification-notice-with-icon">…</div>
- unexpected value "visible"
- locator resolved to <div role="alert" class="ant-notification-notice-with-icon">…</div>
- unexpected value "visible"
- locator resolved to <div role="alert" class="ant-notification-notice-with-icon">…</div>
- unexpected value "visible"
at common/notification.ts:13
11 | .locator(".ant-notification-notice-close")
12 | .click();
> 13 | await expect(page.getByRole("alert").last()).toBeHidden();
| ^
14 | }
15 |
at closeNotification (/home/runner/work/reearth-cms/reearth-cms/web/e2e/common/notification.ts:13:48)
at deleteWorkspace (/home/runner/work/reearth-cms/reearth-cms/web/e2e/project/utils/workspace.ts:17:3)
at /home/runner/work/reearth-cms/reearth-cms/web/e2e/project/request.spec.ts:23:3
|
[chromium] › project/request.spec.ts:138:1 › Navigating between item and request has succeeded:
web/e2e/project/request.spec.ts#L161
3) [chromium] › project/request.spec.ts:138:1 › Navigating between item and request has succeeded
Error: locator.click: Test timeout of 30000ms exceeded.
Call log:
- waiting for getByRole('button', { name: 'newRequestTitle' }).first()
159 | await page.getByRole("button", { name: "Save" }).click();
160 | await closeNotification(page);
> 161 | await page.getByRole("button", { name: newRequestTitle }).first().click();
| ^
162 | await expect(
163 | page.getByRole("button", { name: `collapsed ${modelName} / ${itemId}` }),
164 | ).toBeVisible();
at /home/runner/work/reearth-cms/reearth-cms/web/e2e/project/request.spec.ts:161:69
|
Slow Test:
web/[chromium] › project/content/content.spec.ts#L1
web/[chromium] › project/content/content.spec.ts took 1.4m
|
Slow Test:
web/[chromium] › project/schema.spec.ts#L1
web/[chromium] › project/schema.spec.ts took 1.4m
|
Slow Test:
web/[chromium] › project/asset.spec.ts#L1
web/[chromium] › project/asset.spec.ts took 1.1m
|
Slow Test:
web/[chromium] › project/item/fields/reference.spec.ts#L1
web/[chromium] › project/item/fields/reference.spec.ts took 58.6s
|
Slow Test:
web/[chromium] › settings/settings.spec.ts#L1
web/[chromium] › settings/settings.spec.ts took 54.3s
|
🎭 Playwright Run Summary
3 flaky
[chromium] › project/item/fields/geometryObject.spec.ts:16:1 › GeometryObject field creating and updating has succeeded
[chromium] › project/item/metadata/url.spec.ts:74:1 › Url metadata editing has succeeded ───────
[chromium] › project/request.spec.ts:138:1 › Navigating between item and request has succeeded ─
80 passed (24.0m)
|