vease 2.2.0-rc.1 → 2.2.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.
- package/.build/tests/e2e/utils/create_objects.js +2 -3
- package/.build/tests/e2e/utils/crs.js +4 -4
- package/.build/tests/e2e/utils/crs_flows.js +3 -3
- package/.build/tests/e2e/utils/data_manager.js +2 -2
- package/.build/tests/e2e/utils/extension.js +2 -2
- package/.build/tests/e2e/utils/fixtures.js +1 -1
- package/.build/tests/e2e/utils/load.js +1 -1
- package/.build/tests/e2e/utils/project_interaction.js +2 -2
- package/package.json +10 -7
- package/tests/e2e/utils/create_objects.ts +2 -2
- package/tests/e2e/utils/crs.ts +7 -4
- package/tests/e2e/utils/crs_flows.ts +3 -3
- package/tests/e2e/utils/data_manager.ts +2 -2
- package/tests/e2e/utils/extension.ts +2 -2
- package/tests/e2e/utils/fixtures.ts +1 -1
- package/tests/e2e/utils/load.ts +1 -1
- package/tests/e2e/utils/project_interaction.ts +2 -2
- package/.build/tests/e2e/utils/app_interaction.js +0 -24
- package/.build/tests/e2e/utils/basemap.js +0 -55
- package/.build/tests/e2e/utils/camera_filters.js +0 -105
- package/.build/tests/e2e/utils/camera_interaction.js +0 -107
- package/.build/tests/e2e/utils/camera_tools.js +0 -43
- package/.build/tests/e2e/utils/clipping_planes_interaction.js +0 -80
- package/.build/tests/e2e/utils/constants.js +0 -43
- package/.build/tests/e2e/utils/data/constants.js +0 -26
- package/.build/tests/e2e/utils/data/helpers/attribute.js +0 -85
- package/.build/tests/e2e/utils/data/helpers/attribute_colors.js +0 -47
- package/.build/tests/e2e/utils/data/helpers/attribute_menu.js +0 -13
- package/.build/tests/e2e/utils/data/helpers/color.js +0 -98
- package/.build/tests/e2e/utils/data/helpers/color_picker.js +0 -52
- package/.build/tests/e2e/utils/data/helpers/textures.js +0 -26
- package/.build/tests/e2e/utils/data/index.js +0 -28
- package/.build/tests/e2e/utils/data/mesh/cells/attribute.js +0 -43
- package/.build/tests/e2e/utils/data/mesh/cells/color.js +0 -26
- package/.build/tests/e2e/utils/data/mesh/cells/index.js +0 -4
- package/.build/tests/e2e/utils/data/mesh/cells/visibility.js +0 -9
- package/.build/tests/e2e/utils/data/mesh/edges/attribute.js +0 -43
- package/.build/tests/e2e/utils/data/mesh/edges/color.js +0 -26
- package/.build/tests/e2e/utils/data/mesh/edges/index.js +0 -5
- package/.build/tests/e2e/utils/data/mesh/edges/visibility.js +0 -9
- package/.build/tests/e2e/utils/data/mesh/edges/width.js +0 -9
- package/.build/tests/e2e/utils/data/mesh/index.js +0 -24
- package/.build/tests/e2e/utils/data/mesh/points/attribute.js +0 -31
- package/.build/tests/e2e/utils/data/mesh/points/color.js +0 -26
- package/.build/tests/e2e/utils/data/mesh/points/index.js +0 -5
- package/.build/tests/e2e/utils/data/mesh/points/size.js +0 -9
- package/.build/tests/e2e/utils/data/mesh/points/visibility.js +0 -9
- package/.build/tests/e2e/utils/data/mesh/polygon/attribute.js +0 -47
- package/.build/tests/e2e/utils/data/mesh/polygon/color.js +0 -26
- package/.build/tests/e2e/utils/data/mesh/polygon/index.js +0 -5
- package/.build/tests/e2e/utils/data/mesh/polygon/textures.js +0 -14
- package/.build/tests/e2e/utils/data/mesh/polygon/visibility.js +0 -9
- package/.build/tests/e2e/utils/data/mesh/polyhedra/attribute.js +0 -43
- package/.build/tests/e2e/utils/data/mesh/polyhedra/color.js +0 -29
- package/.build/tests/e2e/utils/data/mesh/polyhedra/index.js +0 -4
- package/.build/tests/e2e/utils/data/mesh/polyhedra/visibility.js +0 -9
- package/.build/tests/e2e/utils/data/model/attribute.js +0 -99
- package/.build/tests/e2e/utils/data/model/color.js +0 -69
- package/.build/tests/e2e/utils/data/model/edges/components.js +0 -50
- package/.build/tests/e2e/utils/data/model/edges/index.js +0 -3
- package/.build/tests/e2e/utils/data/model/edges/visibility.js +0 -9
- package/.build/tests/e2e/utils/data/model/index.js +0 -11
- package/.build/tests/e2e/utils/data/model/points/components.js +0 -50
- package/.build/tests/e2e/utils/data/model/points/index.js +0 -3
- package/.build/tests/e2e/utils/data/model/points/visibility.js +0 -9
- package/.build/tests/e2e/utils/data/model/style_menu.js +0 -10
- package/.build/tests/e2e/utils/data/model/surfaces/index.js +0 -2
- package/.build/tests/e2e/utils/data/model/surfaces/visibility.js +0 -8
- package/.build/tests/e2e/utils/model_tabs.js +0 -35
- package/.build/tests/e2e/utils/object_trees/common.js +0 -122
- package/.build/tests/e2e/utils/object_trees/main_object_tree.js +0 -86
- package/.build/tests/e2e/utils/object_trees/model_components_object_tree.js +0 -111
- package/.build/tests/e2e/utils/other.js +0 -13
- package/.build/tests/e2e/utils/viewer_canvas.js +0 -83
- package/.build/tests/e2e/utils/viewer_interaction.js +0 -87
- package/.build/tests/e2e/utils/viewer_menu.js +0 -98
- package/.build/tests/e2e/utils/wait_for_action_settled.js +0 -63
- package/tests/e2e/utils/app_interaction.ts +0 -35
- package/tests/e2e/utils/basemap.ts +0 -89
- package/tests/e2e/utils/camera_filters.ts +0 -176
- package/tests/e2e/utils/camera_interaction.ts +0 -179
- package/tests/e2e/utils/camera_tools.ts +0 -62
- package/tests/e2e/utils/clipping_planes_interaction.ts +0 -126
- package/tests/e2e/utils/constants.ts +0 -100
- package/tests/e2e/utils/data/constants.ts +0 -58
- package/tests/e2e/utils/data/helpers/attribute.ts +0 -156
- package/tests/e2e/utils/data/helpers/attribute_colors.ts +0 -83
- package/tests/e2e/utils/data/helpers/attribute_menu.ts +0 -19
- package/tests/e2e/utils/data/helpers/color.ts +0 -214
- package/tests/e2e/utils/data/helpers/color_picker.ts +0 -82
- package/tests/e2e/utils/data/helpers/textures.ts +0 -41
- package/tests/e2e/utils/data/index.ts +0 -2
- package/tests/e2e/utils/data/mesh/cells/attribute.ts +0 -103
- package/tests/e2e/utils/data/mesh/cells/color.ts +0 -52
- package/tests/e2e/utils/data/mesh/cells/index.ts +0 -3
- package/tests/e2e/utils/data/mesh/cells/visibility.ts +0 -9
- package/tests/e2e/utils/data/mesh/edges/attribute.ts +0 -103
- package/tests/e2e/utils/data/mesh/edges/color.ts +0 -52
- package/tests/e2e/utils/data/mesh/edges/index.ts +0 -4
- package/tests/e2e/utils/data/mesh/edges/visibility.ts +0 -9
- package/tests/e2e/utils/data/mesh/edges/width.ts +0 -9
- package/tests/e2e/utils/data/mesh/index.ts +0 -6
- package/tests/e2e/utils/data/mesh/points/attribute.ts +0 -66
- package/tests/e2e/utils/data/mesh/points/color.ts +0 -52
- package/tests/e2e/utils/data/mesh/points/index.ts +0 -4
- package/tests/e2e/utils/data/mesh/points/size.ts +0 -9
- package/tests/e2e/utils/data/mesh/points/visibility.ts +0 -9
- package/tests/e2e/utils/data/mesh/polygon/attribute.ts +0 -110
- package/tests/e2e/utils/data/mesh/polygon/color.ts +0 -52
- package/tests/e2e/utils/data/mesh/polygon/index.ts +0 -4
- package/tests/e2e/utils/data/mesh/polygon/textures.ts +0 -21
- package/tests/e2e/utils/data/mesh/polygon/visibility.ts +0 -9
- package/tests/e2e/utils/data/mesh/polyhedra/attribute.ts +0 -103
- package/tests/e2e/utils/data/mesh/polyhedra/color.ts +0 -58
- package/tests/e2e/utils/data/mesh/polyhedra/index.ts +0 -3
- package/tests/e2e/utils/data/mesh/polyhedra/visibility.ts +0 -9
- package/tests/e2e/utils/data/model/attribute.ts +0 -180
- package/tests/e2e/utils/data/model/color.ts +0 -110
- package/tests/e2e/utils/data/model/edges/components.ts +0 -97
- package/tests/e2e/utils/data/model/edges/index.ts +0 -2
- package/tests/e2e/utils/data/model/edges/visibility.ts +0 -9
- package/tests/e2e/utils/data/model/index.ts +0 -5
- package/tests/e2e/utils/data/model/points/components.ts +0 -97
- package/tests/e2e/utils/data/model/points/index.ts +0 -2
- package/tests/e2e/utils/data/model/points/visibility.ts +0 -9
- package/tests/e2e/utils/data/model/style_menu.ts +0 -11
- package/tests/e2e/utils/data/model/surfaces/index.ts +0 -1
- package/tests/e2e/utils/data/model/surfaces/visibility.ts +0 -8
- package/tests/e2e/utils/model_tabs.ts +0 -61
- package/tests/e2e/utils/object_trees/common.ts +0 -212
- package/tests/e2e/utils/object_trees/main_object_tree.ts +0 -167
- package/tests/e2e/utils/object_trees/model_components_object_tree.ts +0 -219
- package/tests/e2e/utils/other.ts +0 -15
- package/tests/e2e/utils/viewer_canvas.ts +0 -136
- package/tests/e2e/utils/viewer_interaction.ts +0 -96
- package/tests/e2e/utils/viewer_menu.ts +0 -205
- package/tests/e2e/utils/wait_for_action_settled.ts +0 -108
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { modelViewerObjectType } from "../../../constants.js";
|
|
2
|
-
import { setPointsVisibility } from "../../../viewer_menu.js";
|
|
3
|
-
import "../../../viewer_interaction.js";
|
|
4
|
-
//#region tests/e2e/utils/data/model/points/visibility.ts
|
|
5
|
-
async function setModelPointsVisibility(window, visibility) {
|
|
6
|
-
await setPointsVisibility(window, modelViewerObjectType, visibility);
|
|
7
|
-
}
|
|
8
|
-
//#endregion
|
|
9
|
-
export { setModelPointsVisibility };
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { selectModelOptionsTab } from "../../model_tabs.js";
|
|
2
|
-
import { ensureMenuOpen } from "../../viewer_menu.js";
|
|
3
|
-
import "../../viewer_interaction.js";
|
|
4
|
-
//#region tests/e2e/utils/data/model/style_menu.ts
|
|
5
|
-
async function showModelStyleOptions(window) {
|
|
6
|
-
await ensureMenuOpen(window, "modelStyleMenu");
|
|
7
|
-
await selectModelOptionsTab(window);
|
|
8
|
-
}
|
|
9
|
-
//#endregion
|
|
10
|
-
export { showModelStyleOptions };
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { setVisibilityGeneric } from "../../../viewer_menu.js";
|
|
2
|
-
import "../../../viewer_interaction.js";
|
|
3
|
-
//#region tests/e2e/utils/data/model/surfaces/visibility.ts
|
|
4
|
-
async function setModelSurfacesVisibility(window, visibility) {
|
|
5
|
-
await setVisibilityGeneric(window, "modelStyleMenu", "modelSurfacesVisibilitySwitch", visibility);
|
|
6
|
-
}
|
|
7
|
-
//#endregion
|
|
8
|
-
export { setModelSurfacesVisibility };
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import { waitForActionSettled } from "./wait_for_action_settled.js";
|
|
2
|
-
//#region tests/e2e/utils/model_tabs.ts
|
|
3
|
-
const MODEL_TAB_SWITCHES = /* @__PURE__ */ new Set([
|
|
4
|
-
"modelStyleVisibilitySwitch",
|
|
5
|
-
"modelEdgesVisibilitySwitch",
|
|
6
|
-
"modelPointsVisibilitySwitch"
|
|
7
|
-
]);
|
|
8
|
-
const COMPONENT_TYPE_TAB_SWITCHES = /* @__PURE__ */ new Set([
|
|
9
|
-
"modelSurfacesVisibilitySwitch",
|
|
10
|
-
"modelLinesVisibilitySwitch",
|
|
11
|
-
"modelCornersVisibilitySwitch",
|
|
12
|
-
"modelBlocksVisibilitySwitch"
|
|
13
|
-
]);
|
|
14
|
-
async function selectModelTab(window, tab) {
|
|
15
|
-
const tabButton = window.getByTestId(`modelTab_${tab}`).filter({ visible: true }).first();
|
|
16
|
-
if (await tabButton.isVisible()) {
|
|
17
|
-
await tabButton.click();
|
|
18
|
-
await waitForActionSettled(window);
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
async function selectModelOptionsTab(window) {
|
|
22
|
-
await selectModelTab(window, await window.getByTestId("modelTab_type").filter({ visible: true }).first().isVisible() ? "type" : "components");
|
|
23
|
-
}
|
|
24
|
-
async function getActiveModelTabTestId(window) {
|
|
25
|
-
const activeTab = window.locator("[data-testid^=\"modelTab_\"].v-btn--active").filter({ visible: true }).first();
|
|
26
|
-
if (await activeTab.count() === 0) return;
|
|
27
|
-
return await activeTab.getAttribute("data-testid") ?? void 0;
|
|
28
|
-
}
|
|
29
|
-
async function restoreModelTab(window, tabTestId) {
|
|
30
|
-
if (tabTestId === void 0) return;
|
|
31
|
-
await window.getByTestId(tabTestId).filter({ visible: true }).first().click();
|
|
32
|
-
await waitForActionSettled(window);
|
|
33
|
-
}
|
|
34
|
-
//#endregion
|
|
35
|
-
export { COMPONENT_TYPE_TAB_SWITCHES, MODEL_TAB_SWITCHES, getActiveModelTabTestId, restoreModelTab, selectModelOptionsTab, selectModelTab };
|
|
@@ -1,122 +0,0 @@
|
|
|
1
|
-
import { waitForActionSettled } from "../wait_for_action_settled.js";
|
|
2
|
-
import { closeAllMenus, moveMouseOutOfTheWay } from "../app_interaction.js";
|
|
3
|
-
//#region tests/e2e/utils/object_trees/common.ts
|
|
4
|
-
async function clickCollapseOrExpandAll(window, tree, expectedIcon) {
|
|
5
|
-
const btn = tree.getByTestId("CollapseOrExpandAll");
|
|
6
|
-
if (await btn.locator(`.${expectedIcon}`).isVisible()) {
|
|
7
|
-
await btn.click();
|
|
8
|
-
await moveMouseOutOfTheWay(window);
|
|
9
|
-
await waitForActionSettled(window);
|
|
10
|
-
}
|
|
11
|
-
}
|
|
12
|
-
async function collapseTreeGroup(window, tree, groupName) {
|
|
13
|
-
const collapseBtn = tree.getByTestId("treeRowWrapper").filter({ hasText: groupName }).first().getByTestId("collapseTreeRowButton");
|
|
14
|
-
if (await collapseBtn.isVisible()) {
|
|
15
|
-
await collapseBtn.click();
|
|
16
|
-
await collapseBtn.waitFor({ state: "hidden" });
|
|
17
|
-
await waitForActionSettled(window);
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
async function toggleSortObjects(window) {
|
|
21
|
-
await window.getByTestId("sortObjectsButton").click();
|
|
22
|
-
await moveMouseOutOfTheWay(window);
|
|
23
|
-
await waitForActionSettled(window);
|
|
24
|
-
}
|
|
25
|
-
async function openFilterMenu(window, tree) {
|
|
26
|
-
await tree.getByTestId("filterObjectsButton").click();
|
|
27
|
-
await window.locator(".v-overlay-container [data-testid^='filterCheckbox-']").first().waitFor({ state: "attached" });
|
|
28
|
-
}
|
|
29
|
-
async function checkFilterCategory(window, categoryId) {
|
|
30
|
-
const checkbox = window.getByTestId(`filterCheckbox-${categoryId}`).getByRole("checkbox");
|
|
31
|
-
await checkbox.waitFor({ state: "attached" });
|
|
32
|
-
await checkbox.check();
|
|
33
|
-
await waitForActionSettled(window);
|
|
34
|
-
}
|
|
35
|
-
async function uncheckFilterCategory(window, categoryId) {
|
|
36
|
-
const checkbox = window.getByTestId(`filterCheckbox-${categoryId}`).getByRole("checkbox");
|
|
37
|
-
await checkbox.waitFor({ state: "attached" });
|
|
38
|
-
await checkbox.uncheck();
|
|
39
|
-
await waitForActionSettled(window);
|
|
40
|
-
}
|
|
41
|
-
async function toggleSearchObjects(window) {
|
|
42
|
-
await window.getByTestId("searchObjectsButton").click();
|
|
43
|
-
await waitForActionSettled(window);
|
|
44
|
-
}
|
|
45
|
-
async function fillSearchQuery(window, query, tree) {
|
|
46
|
-
await tree.getByTestId("searchObjectsInput").locator("input").fill(query);
|
|
47
|
-
await moveMouseOutOfTheWay(window);
|
|
48
|
-
await waitForActionSettled(window);
|
|
49
|
-
}
|
|
50
|
-
async function getTreeRowByTextAndParent(window, geodeObjectType, dataName, tree) {
|
|
51
|
-
const parentRow = tree.getByTestId("treeRowWrapper").filter({
|
|
52
|
-
hasText: geodeObjectType,
|
|
53
|
-
hasNot: window.locator(".leaf-row")
|
|
54
|
-
}).first();
|
|
55
|
-
await parentRow.waitFor({ state: "attached" });
|
|
56
|
-
if (dataName === void 0 || dataName === "") return parentRow;
|
|
57
|
-
const allRows = tree.getByTestId("treeRowWrapper");
|
|
58
|
-
const childIndex = await allRows.evaluateAll((rows, { type, name }) => {
|
|
59
|
-
const parentIndex = rows.findIndex((row) => row.textContent.includes(type) && !row.classList.contains("leaf-row"));
|
|
60
|
-
if (parentIndex === -1) return -1;
|
|
61
|
-
for (let j = parentIndex + 1; j < rows.length; j += 1) {
|
|
62
|
-
const row = rows[j];
|
|
63
|
-
if (row === void 0) break;
|
|
64
|
-
if (row.textContent.includes(name)) return j;
|
|
65
|
-
if (!row.classList.contains("leaf-row")) break;
|
|
66
|
-
}
|
|
67
|
-
return -1;
|
|
68
|
-
}, {
|
|
69
|
-
type: geodeObjectType,
|
|
70
|
-
name: dataName
|
|
71
|
-
});
|
|
72
|
-
if (childIndex === -1) throw new Error(`Could not find child "${dataName}" under parent "${geodeObjectType}"`);
|
|
73
|
-
return allRows.nth(childIndex);
|
|
74
|
-
}
|
|
75
|
-
async function expandGeodeObjectTypeInTree(window, geodeObjectType, tree) {
|
|
76
|
-
await closeAllMenus(window);
|
|
77
|
-
const expandButton = (await getTreeRowByTextAndParent(window, geodeObjectType, void 0, tree)).getByTestId("expandTreeRowButton").first();
|
|
78
|
-
if (await expandButton.isVisible()) {
|
|
79
|
-
await expandButton.click();
|
|
80
|
-
await waitForActionSettled(window);
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
async function collapseGeodeObjectTypeInTree(window, geodeObjectType, tree) {
|
|
84
|
-
const collapseButton = (await getTreeRowByTextAndParent(window, geodeObjectType, void 0, tree)).getByTestId("collapseTreeRowButton").first();
|
|
85
|
-
if (await collapseButton.isVisible()) {
|
|
86
|
-
await collapseButton.click({ force: true });
|
|
87
|
-
await waitForActionSettled(window);
|
|
88
|
-
}
|
|
89
|
-
}
|
|
90
|
-
async function getTreeRowId(rowDataTestIdLocator, objectName) {
|
|
91
|
-
const dataTestId = await rowDataTestIdLocator.getAttribute("data-testid");
|
|
92
|
-
if (dataTestId === null) throw new Error(`Could not find a "data-testid" attribute for row "${objectName}"`);
|
|
93
|
-
return dataTestId.replace("treeRow-", "");
|
|
94
|
-
}
|
|
95
|
-
async function copyTreeRowId(window, parentName, objectName, tree) {
|
|
96
|
-
const row = await getTreeRowByTextAndParent(window, parentName, objectName, tree);
|
|
97
|
-
const label = row.getByTestId("treeItemLabel").first();
|
|
98
|
-
const id = await getTreeRowId(row.locator("[data-testid^=\"treeRow-\"]").first(), objectName);
|
|
99
|
-
await label.hover();
|
|
100
|
-
await waitForActionSettled(window);
|
|
101
|
-
const copyBtn = window.locator(".v-overlay--active").getByTestId("copyIdBtn");
|
|
102
|
-
await copyBtn.hover();
|
|
103
|
-
await copyBtn.click();
|
|
104
|
-
await waitForActionSettled(window);
|
|
105
|
-
return id;
|
|
106
|
-
}
|
|
107
|
-
async function hideObjectInTree(window, parentName, objectName, tree) {
|
|
108
|
-
const row = await getTreeRowByTextAndParent(window, parentName, objectName, tree);
|
|
109
|
-
await row.waitFor({ state: "attached" });
|
|
110
|
-
const btn = row.getByTestId("visibleObjectEyeButton").first();
|
|
111
|
-
if (await btn.isVisible()) {
|
|
112
|
-
await btn.click({ force: true });
|
|
113
|
-
await moveMouseOutOfTheWay(window);
|
|
114
|
-
await waitForActionSettled(window);
|
|
115
|
-
}
|
|
116
|
-
}
|
|
117
|
-
async function openObjectTreeContextMenu(window, objectName, tree) {
|
|
118
|
-
await (await getTreeRowByTextAndParent(window, objectName, void 0, tree)).click({ button: "right" });
|
|
119
|
-
await waitForActionSettled(window);
|
|
120
|
-
}
|
|
121
|
-
//#endregion
|
|
122
|
-
export { checkFilterCategory, clickCollapseOrExpandAll, collapseGeodeObjectTypeInTree, collapseTreeGroup, copyTreeRowId, expandGeodeObjectTypeInTree, fillSearchQuery, getTreeRowByTextAndParent, getTreeRowId, hideObjectInTree, openFilterMenu, openObjectTreeContextMenu, toggleSearchObjects, toggleSortObjects, uncheckFilterCategory };
|
|
@@ -1,86 +0,0 @@
|
|
|
1
|
-
import { waitForActionSettled } from "../wait_for_action_settled.js";
|
|
2
|
-
import { moveMouseOutOfTheWay } from "../app_interaction.js";
|
|
3
|
-
import { clickCollapseOrExpandAll, collapseGeodeObjectTypeInTree, collapseTreeGroup, expandGeodeObjectTypeInTree, getTreeRowByTextAndParent, openObjectTreeContextMenu } from "./common.js";
|
|
4
|
-
import { consola } from "consola";
|
|
5
|
-
//#region tests/e2e/utils/object_trees/main_object_tree.ts
|
|
6
|
-
const HIGHLIGHT_HOVER_ATTEMPTS = 3;
|
|
7
|
-
function getMainObjectTree(window) {
|
|
8
|
-
return window.getByTestId("mainObjectTree");
|
|
9
|
-
}
|
|
10
|
-
async function collapseMainObjectTree(window) {
|
|
11
|
-
const mainObjectTree = getMainObjectTree(window);
|
|
12
|
-
await clickCollapseOrExpandAll(window, mainObjectTree, "mdi-collapse-all-outline");
|
|
13
|
-
}
|
|
14
|
-
async function expandMainObjectTree(window) {
|
|
15
|
-
const mainObjectTree = getMainObjectTree(window);
|
|
16
|
-
await clickCollapseOrExpandAll(window, mainObjectTree, "mdi-expand-all-outline");
|
|
17
|
-
}
|
|
18
|
-
async function collapseMainObjectTreeGroup(window, groupName) {
|
|
19
|
-
const mainObjectTree = getMainObjectTree(window);
|
|
20
|
-
await collapseTreeGroup(window, mainObjectTree, groupName);
|
|
21
|
-
}
|
|
22
|
-
async function expandGeodeObjectType(window, geodeObjectType) {
|
|
23
|
-
await expandGeodeObjectTypeInTree(window, geodeObjectType, getMainObjectTree(window));
|
|
24
|
-
}
|
|
25
|
-
async function collapseGeodeObjectType(window, geodeObjectType) {
|
|
26
|
-
await collapseGeodeObjectTypeInTree(window, geodeObjectType, getMainObjectTree(window));
|
|
27
|
-
}
|
|
28
|
-
async function highlightData(window, geodeObjectType, dataName) {
|
|
29
|
-
await expandGeodeObjectType(window, geodeObjectType);
|
|
30
|
-
const mainObjectTree = getMainObjectTree(window);
|
|
31
|
-
const label = (await getTreeRowByTextAndParent(window, geodeObjectType, dataName, mainObjectTree)).getByTestId("treeItemLabel");
|
|
32
|
-
const tooltipIdValue = window.getByTestId("tooltipIdValue").filter({ hasNotText: geodeObjectType });
|
|
33
|
-
for (let attempt = 1; attempt <= HIGHLIGHT_HOVER_ATTEMPTS; attempt += 1) {
|
|
34
|
-
await label.hover();
|
|
35
|
-
await tooltipIdValue.waitFor({ state: "visible" });
|
|
36
|
-
await waitForActionSettled(window);
|
|
37
|
-
if (await tooltipIdValue.isVisible()) return;
|
|
38
|
-
consola.warn(`highlightData: hover on "${dataName}" was lost while the highlight rendered (attempt ${attempt}/${HIGHLIGHT_HOVER_ATTEMPTS})`);
|
|
39
|
-
await moveMouseOutOfTheWay(window);
|
|
40
|
-
await waitForActionSettled(window);
|
|
41
|
-
}
|
|
42
|
-
throw new Error(`highlightData: hover on "${dataName}" kept being lost after ${HIGHLIGHT_HOVER_ATTEMPTS} attempts`);
|
|
43
|
-
}
|
|
44
|
-
async function focusObjectInTree(window, geodeObjectType, dataName) {
|
|
45
|
-
await expandGeodeObjectType(window, geodeObjectType);
|
|
46
|
-
const mainObjectTree = getMainObjectTree(window);
|
|
47
|
-
await (await getTreeRowByTextAndParent(window, geodeObjectType, dataName, mainObjectTree)).locator("button:has(.mdi-target)").click({ force: true });
|
|
48
|
-
await waitForActionSettled(window);
|
|
49
|
-
}
|
|
50
|
-
async function showObjectInTree(window, objectName) {
|
|
51
|
-
const mainObjectTree = getMainObjectTree(window);
|
|
52
|
-
const row = await getTreeRowByTextAndParent(window, objectName, void 0, mainObjectTree);
|
|
53
|
-
await row.waitFor({ state: "attached" });
|
|
54
|
-
const btn = row.getByTestId("hiddenObjectEyeButton").or(row.getByTestId("indeterminateObjectEyeButton")).first();
|
|
55
|
-
if (await btn.isVisible()) {
|
|
56
|
-
await btn.click({ force: true });
|
|
57
|
-
await waitForActionSettled(window);
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
async function openGeodeObjectTypeContextMenu(window, geodeObjectType) {
|
|
61
|
-
await openObjectTreeContextMenu(window, geodeObjectType, getMainObjectTree(window));
|
|
62
|
-
}
|
|
63
|
-
async function openDataContextMenu(window, geodeObjectType, dataName) {
|
|
64
|
-
await expandGeodeObjectType(window, geodeObjectType);
|
|
65
|
-
const mainObjectTree = getMainObjectTree(window);
|
|
66
|
-
await (await getTreeRowByTextAndParent(window, geodeObjectType, dataName, mainObjectTree)).getByTestId("treeItemLabel").first().click({ button: "right" });
|
|
67
|
-
await waitForActionSettled(window);
|
|
68
|
-
}
|
|
69
|
-
async function toggleObjectsTree(window) {
|
|
70
|
-
await window.getByTestId("toggleObjectsButton").click();
|
|
71
|
-
await waitForActionSettled(window);
|
|
72
|
-
}
|
|
73
|
-
async function closeObjectsTree(window) {
|
|
74
|
-
if (await window.getByTestId("mainObjectTree").isVisible().catch(() => false)) {
|
|
75
|
-
await window.getByTestId("toggleObjectsButton").click();
|
|
76
|
-
await waitForActionSettled(window);
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
async function openObjectsTree(window) {
|
|
80
|
-
if (!await window.getByTestId("mainObjectTree").isVisible().catch(() => false)) {
|
|
81
|
-
await window.getByTestId("toggleObjectsButton").click();
|
|
82
|
-
await waitForActionSettled(window);
|
|
83
|
-
}
|
|
84
|
-
}
|
|
85
|
-
//#endregion
|
|
86
|
-
export { closeObjectsTree, collapseGeodeObjectType, collapseMainObjectTree, collapseMainObjectTreeGroup, expandGeodeObjectType, expandMainObjectTree, focusObjectInTree, getMainObjectTree, highlightData, openDataContextMenu, openGeodeObjectTypeContextMenu, openObjectsTree, showObjectInTree, toggleObjectsTree };
|
|
@@ -1,111 +0,0 @@
|
|
|
1
|
-
import { waitForActionSettled } from "../wait_for_action_settled.js";
|
|
2
|
-
import { closeAllMenus, moveMouseOutOfTheWay } from "../app_interaction.js";
|
|
3
|
-
import { clickCollapseOrExpandAll, collapseGeodeObjectTypeInTree, collapseTreeGroup, expandGeodeObjectTypeInTree, getTreeRowByTextAndParent } from "./common.js";
|
|
4
|
-
import { expandGeodeObjectType, getMainObjectTree } from "./main_object_tree.js";
|
|
5
|
-
import { ensureMenuOpen, resetMenuScroll } from "../viewer_menu.js";
|
|
6
|
-
import "../viewer_interaction.js";
|
|
7
|
-
import { setModelColor } from "../data/model/color.js";
|
|
8
|
-
//#region tests/e2e/utils/object_trees/model_components_object_tree.ts
|
|
9
|
-
function getModelComponentsObjectTree(window) {
|
|
10
|
-
return window.getByTestId("modelComponentsObjectTree");
|
|
11
|
-
}
|
|
12
|
-
function getModelComponentTypeTab(window) {
|
|
13
|
-
return window.getByTestId("modelTab_type");
|
|
14
|
-
}
|
|
15
|
-
async function collapseModelComponentsObjectTree(window) {
|
|
16
|
-
const modelComponentsObjectTree = getModelComponentsObjectTree(window);
|
|
17
|
-
await clickCollapseOrExpandAll(window, modelComponentsObjectTree, "mdi-collapse-all-outline");
|
|
18
|
-
}
|
|
19
|
-
async function expandModelComponentsObjectTree(window) {
|
|
20
|
-
const modelComponentsObjectTree = getModelComponentsObjectTree(window);
|
|
21
|
-
await clickCollapseOrExpandAll(window, modelComponentsObjectTree, "mdi-expand-all-outline");
|
|
22
|
-
}
|
|
23
|
-
async function collapseModelComponentsObjectTreeGroup(window, groupName) {
|
|
24
|
-
const modelComponentsObjectTree = getModelComponentsObjectTree(window);
|
|
25
|
-
await collapseTreeGroup(window, modelComponentsObjectTree, groupName);
|
|
26
|
-
}
|
|
27
|
-
const MODEL_COMPONENT_TYPES = [
|
|
28
|
-
"Corners",
|
|
29
|
-
"Lines",
|
|
30
|
-
"Surfaces",
|
|
31
|
-
"Blocks"
|
|
32
|
-
];
|
|
33
|
-
async function collapseModelComponentTypes(window) {
|
|
34
|
-
for (const componentType of MODEL_COMPONENT_TYPES) await collapseModelComponentsObjectTreeGroup(window, componentType);
|
|
35
|
-
}
|
|
36
|
-
async function expandMeshComponentType(window, componentType) {
|
|
37
|
-
await expandGeodeObjectTypeInTree(window, componentType, getModelComponentsObjectTree(window));
|
|
38
|
-
}
|
|
39
|
-
async function collapseMeshComponentType(window, componentType) {
|
|
40
|
-
await collapseGeodeObjectTypeInTree(window, componentType, getModelComponentsObjectTree(window));
|
|
41
|
-
}
|
|
42
|
-
async function hoverModelComponentRow(window, modelComponentType, modelComponentName) {
|
|
43
|
-
const modelComponentsObjectTree = getModelComponentsObjectTree(window);
|
|
44
|
-
await (await getTreeRowByTextAndParent(window, modelComponentType, modelComponentName, modelComponentsObjectTree)).hover();
|
|
45
|
-
await waitForActionSettled(window);
|
|
46
|
-
}
|
|
47
|
-
async function hoverCorners(window, modelComponentName) {
|
|
48
|
-
await hoverModelComponentRow(window, "Corners", modelComponentName);
|
|
49
|
-
}
|
|
50
|
-
async function hoverLines(window, modelComponentName) {
|
|
51
|
-
await hoverModelComponentRow(window, "Lines", modelComponentName);
|
|
52
|
-
}
|
|
53
|
-
async function hoverSurfaces(window, modelComponentName) {
|
|
54
|
-
await hoverModelComponentRow(window, "Surfaces", modelComponentName);
|
|
55
|
-
}
|
|
56
|
-
async function hoverModelBlock(window, modelComponentName) {
|
|
57
|
-
await hoverModelComponentRow(window, "Blocks", modelComponentName);
|
|
58
|
-
}
|
|
59
|
-
async function toggleModelTreeRow(window, rowName, rowIndex = 0, treeIndex = 0) {
|
|
60
|
-
await closeAllMenus(window);
|
|
61
|
-
const row = getModelComponentsObjectTree(window).nth(treeIndex).getByTestId("treeRowWrapper").filter({ hasText: rowName }).nth(rowIndex);
|
|
62
|
-
await row.getByTestId("visibleObjectEyeButton").or(row.getByTestId("hiddenObjectEyeButton")).first().click();
|
|
63
|
-
await waitForActionSettled(window);
|
|
64
|
-
}
|
|
65
|
-
async function openModelComponentContextMenu(window, rowName, rowIndex = 0, treeIndex = 0) {
|
|
66
|
-
await closeAllMenus(window);
|
|
67
|
-
await getModelComponentsObjectTree(window).nth(treeIndex).getByTestId("treeRowWrapper").filter({ hasText: rowName }).nth(rowIndex).locator(".tree-item-label").first().click({
|
|
68
|
-
button: "right",
|
|
69
|
-
force: true
|
|
70
|
-
});
|
|
71
|
-
await waitForActionSettled(window);
|
|
72
|
-
await ensureMenuOpen(window, "modelStyleMenu");
|
|
73
|
-
await resetMenuScroll(window, 0);
|
|
74
|
-
}
|
|
75
|
-
async function openModelComponentTypeContextMenu(window, componentType) {
|
|
76
|
-
await closeAllMenus(window);
|
|
77
|
-
await (await getTreeRowByTextAndParent(window, componentType, "00000000-", getModelComponentsObjectTree(window))).locator(".tree-item-label").first().click({
|
|
78
|
-
button: "right",
|
|
79
|
-
force: true
|
|
80
|
-
});
|
|
81
|
-
await waitForActionSettled(window);
|
|
82
|
-
await ensureMenuOpen(window, "modelStyleMenu");
|
|
83
|
-
await resetMenuScroll(window, 0);
|
|
84
|
-
}
|
|
85
|
-
async function setModelTreeRowColorRandom(window, rowName, rowIndex = 0) {
|
|
86
|
-
await openModelComponentContextMenu(window, rowName, rowIndex);
|
|
87
|
-
await setModelColor(window);
|
|
88
|
-
}
|
|
89
|
-
async function openModelComponentsTree(window, geodeObjectType, dataName) {
|
|
90
|
-
await expandGeodeObjectType(window, geodeObjectType);
|
|
91
|
-
const mainObjectTree = getMainObjectTree(window);
|
|
92
|
-
await (await getTreeRowByTextAndParent(window, geodeObjectType, dataName, mainObjectTree)).getByTestId("expandModelComponentsButton").first().click();
|
|
93
|
-
await moveMouseOutOfTheWay(window);
|
|
94
|
-
await waitForActionSettled(window);
|
|
95
|
-
}
|
|
96
|
-
async function closeModelComponentsTree(window, geodeObjectType, dataName) {
|
|
97
|
-
if (await getModelComponentsObjectTree(window).isVisible().catch(() => false)) await openModelComponentsTree(window, geodeObjectType, dataName);
|
|
98
|
-
}
|
|
99
|
-
async function hideAllComponentLeafRows(window, categoryName) {
|
|
100
|
-
const tree = getModelComponentsObjectTree(window);
|
|
101
|
-
await expandGeodeObjectTypeInTree(window, categoryName, tree);
|
|
102
|
-
const leafRows = tree.getByTestId("treeRowWrapper").filter({ hasText: "00000000-" });
|
|
103
|
-
const count = await leafRows.count();
|
|
104
|
-
for (let i = 0; i < count; i += 1) {
|
|
105
|
-
const eyeBtn = leafRows.nth(i).getByTestId("visibleObjectEyeButton").first();
|
|
106
|
-
if (await eyeBtn.isVisible()) await eyeBtn.click({ force: true });
|
|
107
|
-
}
|
|
108
|
-
await waitForActionSettled(window);
|
|
109
|
-
}
|
|
110
|
-
//#endregion
|
|
111
|
-
export { closeModelComponentsTree, collapseMeshComponentType, collapseModelComponentTypes, collapseModelComponentsObjectTree, collapseModelComponentsObjectTreeGroup, expandMeshComponentType, expandModelComponentsObjectTree, getModelComponentTypeTab, getModelComponentsObjectTree, hideAllComponentLeafRows, hoverCorners, hoverLines, hoverModelBlock, hoverSurfaces, openModelComponentContextMenu, openModelComponentTypeContextMenu, openModelComponentsTree, setModelTreeRowColorRandom, toggleModelTreeRow };
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
//#region tests/e2e/utils/other.ts
|
|
2
|
-
async function waitForLoadingScreen(window) {
|
|
3
|
-
await window.locator("div[style*=\"z-index: 3\"][style*=\"backdrop-filter: blur\"]").waitFor({
|
|
4
|
-
state: "hidden",
|
|
5
|
-
timeout: 18e4
|
|
6
|
-
});
|
|
7
|
-
}
|
|
8
|
-
function assertDefined(value, message) {
|
|
9
|
-
if (value === void 0) throw new Error(message);
|
|
10
|
-
return value;
|
|
11
|
-
}
|
|
12
|
-
//#endregion
|
|
13
|
-
export { assertDefined, waitForLoadingScreen };
|
|
@@ -1,83 +0,0 @@
|
|
|
1
|
-
import { waitForActionSettled } from "./wait_for_action_settled.js";
|
|
2
|
-
//#region tests/e2e/utils/viewer_canvas.ts
|
|
3
|
-
function getHybridViewerCanvas(window) {
|
|
4
|
-
return window.getByTestId("hybridViewer").locator("canvas");
|
|
5
|
-
}
|
|
6
|
-
async function getHybridViewerCanvasBoundingBox(hybridViewerCanvas) {
|
|
7
|
-
const box = await hybridViewerCanvas.boundingBox();
|
|
8
|
-
if (!box) throw new Error("Could not get bounding box of the hybrid viewer canvas.");
|
|
9
|
-
return box;
|
|
10
|
-
}
|
|
11
|
-
async function viewerContextMenu(window, x, y) {
|
|
12
|
-
await getHybridViewerCanvas(window).click({
|
|
13
|
-
button: "right",
|
|
14
|
-
position: {
|
|
15
|
-
x,
|
|
16
|
-
y
|
|
17
|
-
}
|
|
18
|
-
});
|
|
19
|
-
await waitForActionSettled(window);
|
|
20
|
-
}
|
|
21
|
-
const SCENE_CLICK_MARGIN = 20;
|
|
22
|
-
async function sceneContextMenu(window) {
|
|
23
|
-
await viewerContextMenu(window, (await getHybridViewerCanvasBoundingBox(getHybridViewerCanvas(window))).width - SCENE_CLICK_MARGIN, SCENE_CLICK_MARGIN);
|
|
24
|
-
}
|
|
25
|
-
async function dragElement(window, locator, { startX: fromX, startY: fromY, targetX, targetY, deltaX = 0, deltaY = 0 } = {}) {
|
|
26
|
-
const box = await locator.boundingBox();
|
|
27
|
-
if (!box) throw new Error("Could not get bounding box of the element to drag.");
|
|
28
|
-
const { x, y, width, height } = box;
|
|
29
|
-
const startX = fromX ?? x + width / 2;
|
|
30
|
-
const startY = fromY ?? y + height / 2;
|
|
31
|
-
await window.mouse.move(startX, startY);
|
|
32
|
-
await window.mouse.down();
|
|
33
|
-
await window.mouse.move(targetX ?? startX + deltaX, targetY ?? startY + deltaY, { steps: 20 });
|
|
34
|
-
await window.mouse.up();
|
|
35
|
-
await waitForActionSettled(window);
|
|
36
|
-
}
|
|
37
|
-
async function dragContextMenu(window, { targetX, targetY } = {}) {
|
|
38
|
-
await dragElement(window, window.getByTestId("circularMenuCenterButton"), {
|
|
39
|
-
targetX,
|
|
40
|
-
targetY
|
|
41
|
-
});
|
|
42
|
-
}
|
|
43
|
-
async function hoverViewer(window, position) {
|
|
44
|
-
const hybridViewerCanvas = getHybridViewerCanvas(window);
|
|
45
|
-
const box = await hybridViewerCanvas.boundingBox();
|
|
46
|
-
if (!box) throw new Error("Could not get bounding box of the hybrid viewer canvas.");
|
|
47
|
-
const hoverPosition = position ?? {
|
|
48
|
-
x: box.width / 2,
|
|
49
|
-
y: box.height / 2
|
|
50
|
-
};
|
|
51
|
-
await hybridViewerCanvas.hover({ position: hoverPosition });
|
|
52
|
-
await waitForActionSettled(window);
|
|
53
|
-
}
|
|
54
|
-
async function stabilizeHoverTooltip(window) {
|
|
55
|
-
await window.addStyleTag({ content: ".tooltip-value-dim { visibility: hidden !important; }" });
|
|
56
|
-
}
|
|
57
|
-
async function toggleInfoCard(window) {
|
|
58
|
-
await window.getByTestId("circularMenuCenterButton").click();
|
|
59
|
-
await waitForActionSettled(window);
|
|
60
|
-
}
|
|
61
|
-
const SCALAR_BAR_X_RATIO = .25;
|
|
62
|
-
const SCALAR_BAR_Y_RATIO = .9;
|
|
63
|
-
function getQuickColormapPicker(window) {
|
|
64
|
-
return window.locator(".v-overlay__content").filter({ has: window.getByTestId("colorMapListFilter") });
|
|
65
|
-
}
|
|
66
|
-
async function viewerQuickColormap(window, x, y) {
|
|
67
|
-
const hybridViewerCanvas = getHybridViewerCanvas(window);
|
|
68
|
-
const box = await hybridViewerCanvas.boundingBox();
|
|
69
|
-
if (!box) throw new Error("Could not get bounding box of the hybrid viewer canvas.");
|
|
70
|
-
const targetX = x ?? Math.round(box.width * SCALAR_BAR_X_RATIO);
|
|
71
|
-
const targetY = y ?? Math.round(box.height * SCALAR_BAR_Y_RATIO);
|
|
72
|
-
await hybridViewerCanvas.click({
|
|
73
|
-
button: "left",
|
|
74
|
-
position: {
|
|
75
|
-
x: targetX,
|
|
76
|
-
y: targetY
|
|
77
|
-
},
|
|
78
|
-
force: true
|
|
79
|
-
});
|
|
80
|
-
await waitForActionSettled(window);
|
|
81
|
-
}
|
|
82
|
-
//#endregion
|
|
83
|
-
export { dragContextMenu, dragElement, getHybridViewerCanvas, getHybridViewerCanvasBoundingBox, getQuickColormapPicker, hoverViewer, sceneContextMenu, stabilizeHoverTooltip, toggleInfoCard, viewerContextMenu, viewerQuickColormap };
|
|
@@ -1,87 +0,0 @@
|
|
|
1
|
-
import { afterActionWait } from "./constants.js";
|
|
2
|
-
import { waitForActionSettled } from "./wait_for_action_settled.js";
|
|
3
|
-
import { closeFeedbackSnackbar, moveMouseOutOfTheWay } from "./app_interaction.js";
|
|
4
|
-
import { dragContextMenu, dragElement, getHybridViewerCanvas, getHybridViewerCanvasBoundingBox, getQuickColormapPicker, hoverViewer, sceneContextMenu, stabilizeHoverTooltip, toggleInfoCard, viewerContextMenu, viewerQuickColormap } from "./viewer_canvas.js";
|
|
5
|
-
import { ensureFeatureVisible, ensureMenuOpen, openStyleMenu, resetMenuScroll, setCellsVisibility, setEdgesVisibility, setEdgesWidth, setPointsSize, setPointsVisibility, setPolygonsVisibility, setPolyhedraVisibility, setVisibilityGeneric } from "./viewer_menu.js";
|
|
6
|
-
//#region tests/e2e/utils/viewer_interaction.ts
|
|
7
|
-
function noopCleanup() {}
|
|
8
|
-
async function findOverlappingObjectsPicker(window) {
|
|
9
|
-
let found = false;
|
|
10
|
-
for (const { x, y } of [
|
|
11
|
-
{
|
|
12
|
-
x: 440,
|
|
13
|
-
y: 530
|
|
14
|
-
},
|
|
15
|
-
{
|
|
16
|
-
x: 600,
|
|
17
|
-
y: 400
|
|
18
|
-
},
|
|
19
|
-
{
|
|
20
|
-
x: 600,
|
|
21
|
-
y: 500
|
|
22
|
-
},
|
|
23
|
-
{
|
|
24
|
-
x: 600,
|
|
25
|
-
y: 300
|
|
26
|
-
},
|
|
27
|
-
{
|
|
28
|
-
x: 500,
|
|
29
|
-
y: 400
|
|
30
|
-
},
|
|
31
|
-
{
|
|
32
|
-
x: 700,
|
|
33
|
-
y: 400
|
|
34
|
-
},
|
|
35
|
-
{
|
|
36
|
-
x: 550,
|
|
37
|
-
y: 450
|
|
38
|
-
},
|
|
39
|
-
{
|
|
40
|
-
x: 650,
|
|
41
|
-
y: 350
|
|
42
|
-
},
|
|
43
|
-
{
|
|
44
|
-
x: 650,
|
|
45
|
-
y: 450
|
|
46
|
-
},
|
|
47
|
-
{
|
|
48
|
-
x: 550,
|
|
49
|
-
y: 350
|
|
50
|
-
},
|
|
51
|
-
{
|
|
52
|
-
x: 400,
|
|
53
|
-
y: 400
|
|
54
|
-
},
|
|
55
|
-
{
|
|
56
|
-
x: 800,
|
|
57
|
-
y: 400
|
|
58
|
-
},
|
|
59
|
-
{
|
|
60
|
-
x: 450,
|
|
61
|
-
y: 550
|
|
62
|
-
},
|
|
63
|
-
{
|
|
64
|
-
x: 500,
|
|
65
|
-
y: 500
|
|
66
|
-
}
|
|
67
|
-
]) {
|
|
68
|
-
await window.getByTestId("hybridViewer").locator("canvas").click({
|
|
69
|
-
button: "right",
|
|
70
|
-
position: {
|
|
71
|
-
x,
|
|
72
|
-
y
|
|
73
|
-
},
|
|
74
|
-
delay: 100
|
|
75
|
-
});
|
|
76
|
-
await waitForActionSettled(window);
|
|
77
|
-
if (await window.locator(".intermediate-picker-item").count() >= 2) {
|
|
78
|
-
found = true;
|
|
79
|
-
break;
|
|
80
|
-
}
|
|
81
|
-
await window.keyboard.press("Escape");
|
|
82
|
-
await window.waitForTimeout(500);
|
|
83
|
-
}
|
|
84
|
-
if (!found) throw new Error("Could not find overlapping objects picker anywhere! The test data might not be loaded or the picker is broken.");
|
|
85
|
-
}
|
|
86
|
-
//#endregion
|
|
87
|
-
export { afterActionWait, closeFeedbackSnackbar, dragContextMenu, dragElement, ensureFeatureVisible, ensureMenuOpen, findOverlappingObjectsPicker, getHybridViewerCanvas, getHybridViewerCanvasBoundingBox, getQuickColormapPicker, hoverViewer, moveMouseOutOfTheWay, noopCleanup, openStyleMenu, resetMenuScroll, sceneContextMenu, setCellsVisibility, setEdgesVisibility, setEdgesWidth, setPointsSize, setPointsVisibility, setPolygonsVisibility, setPolyhedraVisibility, setVisibilityGeneric, stabilizeHoverTooltip, toggleInfoCard, viewerContextMenu, viewerQuickColormap };
|