vease 2.1.0-rc.1 → 2.1.0
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.
|
@@ -29,6 +29,35 @@ async function loadVeaseTestDatas(window, inputDataFilenames, { loadTimeout = lo
|
|
|
29
29
|
function getDataImportStepper(window) {
|
|
30
30
|
return window.getByTestId("DataImportStepper");
|
|
31
31
|
}
|
|
32
|
+
async function selectCsvColumn(window, csvDialog, label, column) {
|
|
33
|
+
await csvDialog.locator(".v-select").filter({ hasText: label }).click();
|
|
34
|
+
await window.getByRole("option", {
|
|
35
|
+
name: column,
|
|
36
|
+
exact: true
|
|
37
|
+
}).click();
|
|
38
|
+
await expect(window.getByRole("option")).toHaveCount(0);
|
|
39
|
+
}
|
|
40
|
+
async function loadVeaseCsvData(window, inputDataFilename, columns, { loadTimeout = loadWorkflowTimeout } = {}) {
|
|
41
|
+
const inputDataFilePath = path.join(__dirname, "..", "tests", "data", inputDataFilename);
|
|
42
|
+
consola.info(`Loading CSV ${inputDataFilePath}`);
|
|
43
|
+
const layoutImportButton = getLayoutImportButton(window);
|
|
44
|
+
await expect(layoutImportButton).toBeEnabled({ timeout: 2e4 });
|
|
45
|
+
await layoutImportButton.click();
|
|
46
|
+
const fileInput = window.locator("input[type=\"file\"][accept*=\".csv\"]");
|
|
47
|
+
await fileInput.waitFor({ state: "attached" });
|
|
48
|
+
await fileInput.setInputFiles(inputDataFilePath);
|
|
49
|
+
const csvDialog = window.locator(".v-dialog").filter({ hasText: "CSV Previewer & Configuration" });
|
|
50
|
+
await csvDialog.waitFor();
|
|
51
|
+
await selectCsvColumn(window, csvDialog, "X Column", columns.x);
|
|
52
|
+
await selectCsvColumn(window, csvDialog, "Y Column", columns.y);
|
|
53
|
+
await selectCsvColumn(window, csvDialog, "Z Column", columns.z);
|
|
54
|
+
await csvDialog.getByRole("button", { name: "Confirm" }).click();
|
|
55
|
+
await csvDialog.waitFor({ state: "detached" });
|
|
56
|
+
const dataImportStepper = getDataImportStepper(window);
|
|
57
|
+
await window.getByTestId("finalizeImportButton").click();
|
|
58
|
+
await dataImportStepper.waitFor({ state: "detached" });
|
|
59
|
+
await waitForActionSettled(window, loadTimeout);
|
|
60
|
+
}
|
|
32
61
|
async function selectTimeSeriesFile(window, timeSeriesPath) {
|
|
33
62
|
consola.info(`Importing time series ${timeSeriesPath}`);
|
|
34
63
|
await getLayoutImportButton(window).click();
|
|
@@ -57,4 +86,4 @@ async function applyTimeSeries(window, loadTimeout = loadWorkflowTimeout) {
|
|
|
57
86
|
await waitForActionSettled(window, loadTimeout);
|
|
58
87
|
}
|
|
59
88
|
//#endregion
|
|
60
|
-
export { applyTimeSeries, loadVeaseTestDatas, selectTimeSeriesFile, selectTimeSeriesFolder, selectTimeSeriesTarget };
|
|
89
|
+
export { applyTimeSeries, loadVeaseCsvData, loadVeaseTestDatas, selectTimeSeriesFile, selectTimeSeriesFolder, selectTimeSeriesTarget };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vease",
|
|
3
|
-
"version": "2.1.0
|
|
3
|
+
"version": "2.1.0",
|
|
4
4
|
"description": "Desktop and cloud software for data visualization",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Desktop",
|
|
@@ -90,12 +90,12 @@
|
|
|
90
90
|
"@ai-sdk/vue": "4.0.93",
|
|
91
91
|
"@fontsource/michroma": "5.2.6",
|
|
92
92
|
"@fontsource/roboto": "5.2.10",
|
|
93
|
-
"@geode/cloud-api": "
|
|
94
|
-
"@geode/opengeodeweb-back": "
|
|
95
|
-
"@geode/opengeodeweb-front": "
|
|
96
|
-
"@geode/opengeodeweb-viewer": "
|
|
97
|
-
"@geode/vease-back": "
|
|
98
|
-
"@geode/vease-viewer": "
|
|
93
|
+
"@geode/cloud-api": "latest",
|
|
94
|
+
"@geode/opengeodeweb-back": "latest",
|
|
95
|
+
"@geode/opengeodeweb-front": "latest",
|
|
96
|
+
"@geode/opengeodeweb-viewer": "latest",
|
|
97
|
+
"@geode/vease-back": "latest",
|
|
98
|
+
"@geode/vease-viewer": "latest",
|
|
99
99
|
"@nuxtjs/mcp-toolkit": "0.18.1",
|
|
100
100
|
"ai": "7.0.93",
|
|
101
101
|
"bowser": "2.14.1",
|
package/tests/e2e/utils/load.ts
CHANGED
|
@@ -51,6 +51,54 @@ function getDataImportStepper(window: Page): Locator {
|
|
|
51
51
|
return window.getByTestId("DataImportStepper");
|
|
52
52
|
}
|
|
53
53
|
|
|
54
|
+
interface CsvColumns {
|
|
55
|
+
x: string;
|
|
56
|
+
y: string;
|
|
57
|
+
z: string;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
async function selectCsvColumn(
|
|
61
|
+
window: Page,
|
|
62
|
+
csvDialog: Locator,
|
|
63
|
+
label: string,
|
|
64
|
+
column: string,
|
|
65
|
+
): Promise<void> {
|
|
66
|
+
await csvDialog.locator(".v-select").filter({ hasText: label }).click();
|
|
67
|
+
await window.getByRole("option", { name: column, exact: true }).click();
|
|
68
|
+
// The closing menu stays in the DOM during its transition and would duplicate the next options
|
|
69
|
+
await expect(window.getByRole("option")).toHaveCount(0);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
// A CSV opens the previewer dialog: map the coordinate columns, then Confirm uploads the JSON sidecar
|
|
73
|
+
async function loadVeaseCsvData(
|
|
74
|
+
window: Page,
|
|
75
|
+
inputDataFilename: string,
|
|
76
|
+
columns: CsvColumns,
|
|
77
|
+
{ loadTimeout = loadWorkflowTimeout }: { loadTimeout?: number } = {},
|
|
78
|
+
): Promise<void> {
|
|
79
|
+
const inputDataFilePath = path.join(__dirname, "..", "tests", "data", inputDataFilename);
|
|
80
|
+
consola.info(`Loading CSV ${inputDataFilePath}`);
|
|
81
|
+
const layoutImportButton = getLayoutImportButton(window);
|
|
82
|
+
await expect(layoutImportButton).toBeEnabled({ timeout: 20_000 });
|
|
83
|
+
await layoutImportButton.click();
|
|
84
|
+
const fileInput = window.locator('input[type="file"][accept*=".csv"]');
|
|
85
|
+
await fileInput.waitFor({ state: "attached" });
|
|
86
|
+
await fileInput.setInputFiles(inputDataFilePath);
|
|
87
|
+
const csvDialog = window
|
|
88
|
+
.locator(".v-dialog")
|
|
89
|
+
.filter({ hasText: "CSV Previewer & Configuration" });
|
|
90
|
+
await csvDialog.waitFor();
|
|
91
|
+
await selectCsvColumn(window, csvDialog, "X Column", columns.x);
|
|
92
|
+
await selectCsvColumn(window, csvDialog, "Y Column", columns.y);
|
|
93
|
+
await selectCsvColumn(window, csvDialog, "Z Column", columns.z);
|
|
94
|
+
await csvDialog.getByRole("button", { name: "Confirm" }).click();
|
|
95
|
+
await csvDialog.waitFor({ state: "detached" });
|
|
96
|
+
const dataImportStepper = getDataImportStepper(window);
|
|
97
|
+
await window.getByTestId("finalizeImportButton").click();
|
|
98
|
+
await dataImportStepper.waitFor({ state: "detached" });
|
|
99
|
+
await waitForActionSettled(window, loadTimeout);
|
|
100
|
+
}
|
|
101
|
+
|
|
54
102
|
async function selectTimeSeriesFile(window: Page, timeSeriesPath: string): Promise<void> {
|
|
55
103
|
consola.info(`Importing time series ${timeSeriesPath}`);
|
|
56
104
|
await getLayoutImportButton(window).click();
|
|
@@ -85,6 +133,7 @@ async function applyTimeSeries(window: Page, loadTimeout = loadWorkflowTimeout):
|
|
|
85
133
|
|
|
86
134
|
export {
|
|
87
135
|
applyTimeSeries,
|
|
136
|
+
loadVeaseCsvData,
|
|
88
137
|
loadVeaseTestDatas,
|
|
89
138
|
selectTimeSeriesFile,
|
|
90
139
|
selectTimeSeriesFolder,
|