vease 2.2.1-rc.1 → 2.3.0-rc.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -66,8 +66,13 @@ async function clickAssign(window) {
66
66
  await window.getByTestId("crsAssignButton").click();
67
67
  await waitForActionSettled(window);
68
68
  }
69
- async function expectFeedback(window, text) {
70
- await expect(window.getByTestId("feedbackSnackbar").filter({ hasText: text })).toBeVisible();
69
+ const FEEDBACK_TIMEOUT_MS = 6e4;
70
+ async function expectFeedback(window, text, action) {
71
+ const shown = window.getByTestId("feedbackSnackbar").filter({ hasText: text }).waitFor({
72
+ state: "visible",
73
+ timeout: FEEDBACK_TIMEOUT_MS
74
+ });
75
+ await Promise.all([shown, action()]);
71
76
  await closeFeedbackSnackbar(window);
72
77
  }
73
78
  async function selectConvertMode(window) {
@@ -7,6 +7,7 @@ import path from "node:path";
7
7
  import os from "node:os";
8
8
  //#region tests/e2e/utils/fixtures.ts
9
9
  const MILLISECONDS_PER_SECOND = 1e3;
10
+ const BUSY_TIMEOUT_MS = 3e4;
10
11
  const test = test$1.extend({
11
12
  mode: ["DEFAULT", {
12
13
  option: true,
@@ -68,6 +69,7 @@ const test = test$1.extend({
68
69
  await use(void 0);
69
70
  const { window } = app;
70
71
  if (testInfo.status === testInfo.expectedStatus) {
72
+ await expect(window.getByTestId("microservicesBusyIndicator")).toBeHidden({ timeout: BUSY_TIMEOUT_MS });
71
73
  await waitForActionSettled(window);
72
74
  await expect(window).toHaveScreenshot({ mask: [window.getByTestId("accountNavButton"), ...screenshotMask.locators] });
73
75
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vease",
3
- "version": "2.2.1-rc.1",
3
+ "version": "2.3.0-rc.1",
4
4
  "description": "Desktop and cloud software for data visualization",
5
5
  "keywords": [
6
6
  "Desktop",
@@ -115,8 +115,19 @@ async function clickAssign(window: Page): Promise<void> {
115
115
  await waitForActionSettled(window);
116
116
  }
117
117
 
118
- async function expectFeedback(window: Page, text: string): Promise<void> {
119
- await expect(window.getByTestId("feedbackSnackbar").filter({ hasText: text })).toBeVisible();
118
+ // The snackbar leaves after 10s: a slow basemap build (external tile servers) can outlast it while the action settles, so it is watched from before the action
119
+ const FEEDBACK_TIMEOUT_MS = 60_000;
120
+
121
+ async function expectFeedback(
122
+ window: Page,
123
+ text: string,
124
+ action: () => Promise<void>,
125
+ ): Promise<void> {
126
+ const shown = window
127
+ .getByTestId("feedbackSnackbar")
128
+ .filter({ hasText: text })
129
+ .waitFor({ state: "visible", timeout: FEEDBACK_TIMEOUT_MS });
130
+ await Promise.all([shown, action()]);
120
131
  await closeFeedbackSnackbar(window);
121
132
  }
122
133
 
@@ -15,6 +15,8 @@ import { navigateToApp } from "./navigate";
15
15
  import { waitForActionSettled } from "#ogw_e2e/wait_for_action_settled.js";
16
16
 
17
17
  const MILLISECONDS_PER_SECOND = 1000;
18
+ // Whole download deadline of a basemap build in OpenGeodeWeb-Back (FETCH_DEADLINE_SECONDS)
19
+ const BUSY_TIMEOUT_MS = 30_000;
18
20
 
19
21
  interface ScreenshotMask {
20
22
  locators: Locator[];
@@ -135,6 +137,10 @@ const test = base.extend<TestFixtures, WorkerFixtures>({
135
137
  const { window } = app;
136
138
  if (testInfo.status === testInfo.expectedStatus) {
137
139
  // Never capture while the microservices are still busy (busy indicator bar, half-rendered viewer)
140
+ // A basemap build waits on external tile servers longer than waitForActionSettled does
141
+ await expect(window.getByTestId("microservicesBusyIndicator")).toBeHidden({
142
+ timeout: BUSY_TIMEOUT_MS,
143
+ });
138
144
  await waitForActionSettled(window);
139
145
  // The account icon depends on login state (only cloud is logged in)
140
146
  await expect(window).toHaveScreenshot({