vease 2.2.0 → 2.2.1-rc.2
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
|
-
|
|
70
|
-
|
|
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.
|
|
3
|
+
"version": "2.2.1-rc.2",
|
|
4
4
|
"description": "Desktop and cloud software for data visualization",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Desktop",
|
|
@@ -93,12 +93,12 @@
|
|
|
93
93
|
"@ai-sdk/vue": "4.0.93",
|
|
94
94
|
"@fontsource/michroma": "5.2.6",
|
|
95
95
|
"@fontsource/roboto": "5.2.10",
|
|
96
|
-
"@geode/cloud-api": "
|
|
97
|
-
"@geode/opengeodeweb-back": "
|
|
98
|
-
"@geode/opengeodeweb-front": "
|
|
99
|
-
"@geode/opengeodeweb-viewer": "
|
|
100
|
-
"@geode/vease-back": "
|
|
101
|
-
"@geode/vease-viewer": "
|
|
96
|
+
"@geode/cloud-api": "next",
|
|
97
|
+
"@geode/opengeodeweb-back": "next",
|
|
98
|
+
"@geode/opengeodeweb-front": "next",
|
|
99
|
+
"@geode/opengeodeweb-viewer": "next",
|
|
100
|
+
"@geode/vease-back": "next",
|
|
101
|
+
"@geode/vease-viewer": "next",
|
|
102
102
|
"@nuxtjs/mcp-toolkit": "0.18.1",
|
|
103
103
|
"ai": "7.0.93",
|
|
104
104
|
"bowser": "2.14.1",
|
package/tests/e2e/utils/crs.ts
CHANGED
|
@@ -115,8 +115,19 @@ async function clickAssign(window: Page): Promise<void> {
|
|
|
115
115
|
await waitForActionSettled(window);
|
|
116
116
|
}
|
|
117
117
|
|
|
118
|
-
|
|
119
|
-
|
|
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({
|
package/vease_schemas.json
CHANGED
|
@@ -3093,9 +3093,12 @@
|
|
|
3093
3093
|
},
|
|
3094
3094
|
"running": {
|
|
3095
3095
|
"type": "boolean"
|
|
3096
|
+
},
|
|
3097
|
+
"starting": {
|
|
3098
|
+
"type": "boolean"
|
|
3096
3099
|
}
|
|
3097
3100
|
},
|
|
3098
|
-
"required": ["statusCode", "running"],
|
|
3101
|
+
"required": ["statusCode", "running", "starting"],
|
|
3099
3102
|
"additionalProperties": false
|
|
3100
3103
|
}
|
|
3101
3104
|
},
|