vease 2.2.0-rc.1 → 2.2.0-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.
- 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 +4 -1
- 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,66 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
SLIDER_PINK,
|
|
3
|
-
clickColorPickerCanvas,
|
|
4
|
-
clickColorPickerSlider,
|
|
5
|
-
} from "@vease_tests/utils/data/helpers/color_picker";
|
|
6
|
-
import {
|
|
7
|
-
ensureMenuOpen,
|
|
8
|
-
moveMouseOutOfTheWay,
|
|
9
|
-
openStyleMenu,
|
|
10
|
-
} from "@vease_tests/utils/viewer_interaction";
|
|
11
|
-
import {
|
|
12
|
-
meshViewerObjectType,
|
|
13
|
-
pointsFeatureName,
|
|
14
|
-
vertexAttributeType,
|
|
15
|
-
} from "@vease_tests/utils/constants";
|
|
16
|
-
import type { Page } from "@playwright/test";
|
|
17
|
-
import { setFeatureAttribute } from "@vease_tests/utils/data/helpers/attribute";
|
|
18
|
-
import { waitForActionSettled } from "@vease_tests/utils/wait_for_action_settled";
|
|
19
|
-
|
|
20
|
-
interface AttributeOptions {
|
|
21
|
-
item?: number;
|
|
22
|
-
colorMap?: string;
|
|
23
|
-
min?: number | string;
|
|
24
|
-
max?: number | string;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
async function setMeshPointsVertexAttribute(
|
|
28
|
-
window: Page,
|
|
29
|
-
attributeName: string,
|
|
30
|
-
options: AttributeOptions = {},
|
|
31
|
-
): Promise<void> {
|
|
32
|
-
await setFeatureAttribute(
|
|
33
|
-
window,
|
|
34
|
-
meshViewerObjectType,
|
|
35
|
-
pointsFeatureName,
|
|
36
|
-
vertexAttributeType,
|
|
37
|
-
attributeName,
|
|
38
|
-
options,
|
|
39
|
-
);
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
async function openMeshPointsMenu(window: Page): Promise<void> {
|
|
43
|
-
const menuTestId = `${meshViewerObjectType}${pointsFeatureName}Menu`;
|
|
44
|
-
await openStyleMenu(window, menuTestId);
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
async function setMeshPointsNoDataColor(window: Page): Promise<void> {
|
|
48
|
-
const menuTestId = `${meshViewerObjectType}${pointsFeatureName}Menu`;
|
|
49
|
-
await ensureMenuOpen(window, menuTestId);
|
|
50
|
-
const noDataColorBtn = window.getByTestId("noDataColorBtn").first();
|
|
51
|
-
await noDataColorBtn.waitFor({ state: "visible" });
|
|
52
|
-
await noDataColorBtn.click();
|
|
53
|
-
await waitForActionSettled(window);
|
|
54
|
-
await window
|
|
55
|
-
.getByTestId("colorPicker")
|
|
56
|
-
.filter({ visible: true })
|
|
57
|
-
.first()
|
|
58
|
-
.waitFor({ state: "visible" });
|
|
59
|
-
await clickColorPickerSlider(window, SLIDER_PINK);
|
|
60
|
-
await clickColorPickerCanvas(window);
|
|
61
|
-
await noDataColorBtn.click();
|
|
62
|
-
await moveMouseOutOfTheWay(window);
|
|
63
|
-
await waitForActionSettled(window);
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
export { openMeshPointsMenu, setMeshPointsNoDataColor, setMeshPointsVertexAttribute };
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
import type { Locator, Page } from "@playwright/test";
|
|
2
|
-
import { meshViewerObjectType, pointsFeatureName } from "@vease_tests/utils/constants";
|
|
3
|
-
import {
|
|
4
|
-
setFeatureColor,
|
|
5
|
-
setFeatureColorInput,
|
|
6
|
-
setFeatureColorWithSlider,
|
|
7
|
-
setFeatureColoringStyle,
|
|
8
|
-
setFeatureCopyColor,
|
|
9
|
-
setFeatureOpacity,
|
|
10
|
-
setFeaturePasteColorInput,
|
|
11
|
-
} from "@vease_tests/utils/data/helpers/color";
|
|
12
|
-
|
|
13
|
-
async function setMeshPointsOpacity(window: Page, percent: number): Promise<void> {
|
|
14
|
-
await setFeatureOpacity(window, meshViewerObjectType, pointsFeatureName, percent);
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
async function setMeshPointsColor(window: Page): Promise<void> {
|
|
18
|
-
await setFeatureColor(window, meshViewerObjectType, pointsFeatureName);
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
async function setMeshPointsColorWithSlider(window: Page): Promise<void> {
|
|
22
|
-
await setFeatureColorWithSlider(window, meshViewerObjectType, pointsFeatureName);
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
async function copyMeshPointsColor(window: Page): Promise<void> {
|
|
26
|
-
await setFeatureCopyColor(window, meshViewerObjectType, pointsFeatureName);
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
async function setMeshPointsColorInput(window: Page, colorText: string): Promise<void> {
|
|
30
|
-
await setFeatureColorInput(window, meshViewerObjectType, pointsFeatureName, colorText);
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
async function pasteMeshPointsColorInput(
|
|
34
|
-
window: Page,
|
|
35
|
-
container: Page | Locator = window,
|
|
36
|
-
): Promise<void> {
|
|
37
|
-
await setFeaturePasteColorInput(window, meshViewerObjectType, pointsFeatureName, container);
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
async function setMeshPointsColoringStyle(window: Page, style: string): Promise<void> {
|
|
41
|
-
await setFeatureColoringStyle(window, meshViewerObjectType, pointsFeatureName, style);
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
export {
|
|
45
|
-
copyMeshPointsColor,
|
|
46
|
-
pasteMeshPointsColorInput,
|
|
47
|
-
setMeshPointsColor,
|
|
48
|
-
setMeshPointsColorInput,
|
|
49
|
-
setMeshPointsColorWithSlider,
|
|
50
|
-
setMeshPointsColoringStyle,
|
|
51
|
-
setMeshPointsOpacity,
|
|
52
|
-
};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import type { Page } from "@playwright/test";
|
|
2
|
-
import { meshViewerObjectType } from "@vease_tests/utils/constants";
|
|
3
|
-
import { setPointsSize } from "@vease_tests/utils/viewer_interaction";
|
|
4
|
-
|
|
5
|
-
async function setMeshPointsSize(window: Page, value: number): Promise<void> {
|
|
6
|
-
await setPointsSize(window, meshViewerObjectType, value);
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
export { setMeshPointsSize };
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import type { Page } from "@playwright/test";
|
|
2
|
-
import { meshViewerObjectType } from "@vease_tests/utils/constants";
|
|
3
|
-
import { setPointsVisibility } from "@vease_tests/utils/viewer_interaction";
|
|
4
|
-
|
|
5
|
-
async function setMeshPointsVisibility(window: Page, visibility: boolean): Promise<void> {
|
|
6
|
-
await setPointsVisibility(window, meshViewerObjectType, visibility);
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
export { setMeshPointsVisibility };
|
|
@@ -1,110 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
SLIDER_PINK,
|
|
3
|
-
clickColorPickerCanvas,
|
|
4
|
-
clickColorPickerSlider,
|
|
5
|
-
} from "@vease_tests/utils/data/helpers/color_picker";
|
|
6
|
-
import {
|
|
7
|
-
ensureMenuOpen,
|
|
8
|
-
moveMouseOutOfTheWay,
|
|
9
|
-
openStyleMenu,
|
|
10
|
-
} from "@vease_tests/utils/viewer_interaction";
|
|
11
|
-
import {
|
|
12
|
-
meshViewerObjectType,
|
|
13
|
-
polygonAttributeType,
|
|
14
|
-
polygonsFeatureName,
|
|
15
|
-
vertexAttributeType,
|
|
16
|
-
} from "@vease_tests/utils/constants";
|
|
17
|
-
import {
|
|
18
|
-
setFeatureAttribute,
|
|
19
|
-
setFeatureColorMap,
|
|
20
|
-
setFeatureItem,
|
|
21
|
-
setFeatureTimeStep,
|
|
22
|
-
} from "@vease_tests/utils/data/helpers/attribute";
|
|
23
|
-
import type { Page } from "@playwright/test";
|
|
24
|
-
import { waitForActionSettled } from "@vease_tests/utils/wait_for_action_settled";
|
|
25
|
-
|
|
26
|
-
interface AttributeOptions {
|
|
27
|
-
item?: number;
|
|
28
|
-
colorMap?: string;
|
|
29
|
-
min?: number | string;
|
|
30
|
-
max?: number | string;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
async function setMeshPolygonsVertexAttribute(
|
|
34
|
-
window: Page,
|
|
35
|
-
attributeName: string,
|
|
36
|
-
options: AttributeOptions = {},
|
|
37
|
-
): Promise<void> {
|
|
38
|
-
await setFeatureAttribute(
|
|
39
|
-
window,
|
|
40
|
-
meshViewerObjectType,
|
|
41
|
-
polygonsFeatureName,
|
|
42
|
-
vertexAttributeType,
|
|
43
|
-
attributeName,
|
|
44
|
-
options,
|
|
45
|
-
);
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
async function setMeshPolygonsPolygonAttribute(
|
|
49
|
-
window: Page,
|
|
50
|
-
attributeName: string,
|
|
51
|
-
options: AttributeOptions = {},
|
|
52
|
-
): Promise<void> {
|
|
53
|
-
await setFeatureAttribute(
|
|
54
|
-
window,
|
|
55
|
-
meshViewerObjectType,
|
|
56
|
-
polygonsFeatureName,
|
|
57
|
-
polygonAttributeType,
|
|
58
|
-
attributeName,
|
|
59
|
-
options,
|
|
60
|
-
);
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
async function setMeshPolygonsItem(window: Page, item: number): Promise<void> {
|
|
64
|
-
const menuTestId = `${meshViewerObjectType}${polygonsFeatureName}Menu`;
|
|
65
|
-
await setFeatureItem(window, menuTestId, item);
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
async function setMeshPolygonsTimeStep(window: Page, timeStep: number): Promise<void> {
|
|
69
|
-
const menuTestId = `${meshViewerObjectType}${polygonsFeatureName}Menu`;
|
|
70
|
-
await setFeatureTimeStep(window, menuTestId, timeStep);
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
async function setMeshPolygonsColorMap(window: Page, colorMap: string): Promise<void> {
|
|
74
|
-
const menuTestId = `${meshViewerObjectType}${polygonsFeatureName}Menu`;
|
|
75
|
-
await setFeatureColorMap(window, menuTestId, colorMap);
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
async function openMeshPolygonsMenu(window: Page): Promise<void> {
|
|
79
|
-
const menuTestId = `${meshViewerObjectType}${polygonsFeatureName}Menu`;
|
|
80
|
-
await openStyleMenu(window, menuTestId);
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
async function setMeshPolygonsNoDataColor(window: Page): Promise<void> {
|
|
84
|
-
const menuTestId = `${meshViewerObjectType}${polygonsFeatureName}Menu`;
|
|
85
|
-
await ensureMenuOpen(window, menuTestId);
|
|
86
|
-
const noDataColorBtn = window.getByTestId("noDataColorBtn").first();
|
|
87
|
-
await noDataColorBtn.waitFor({ state: "visible" });
|
|
88
|
-
await noDataColorBtn.click();
|
|
89
|
-
await waitForActionSettled(window);
|
|
90
|
-
await window
|
|
91
|
-
.getByTestId("colorPicker")
|
|
92
|
-
.filter({ visible: true })
|
|
93
|
-
.first()
|
|
94
|
-
.waitFor({ state: "visible" });
|
|
95
|
-
await clickColorPickerSlider(window, SLIDER_PINK);
|
|
96
|
-
await clickColorPickerCanvas(window);
|
|
97
|
-
await noDataColorBtn.click();
|
|
98
|
-
await moveMouseOutOfTheWay(window);
|
|
99
|
-
await waitForActionSettled(window);
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
export {
|
|
103
|
-
openMeshPolygonsMenu,
|
|
104
|
-
setMeshPolygonsColorMap,
|
|
105
|
-
setMeshPolygonsItem,
|
|
106
|
-
setMeshPolygonsNoDataColor,
|
|
107
|
-
setMeshPolygonsPolygonAttribute,
|
|
108
|
-
setMeshPolygonsTimeStep,
|
|
109
|
-
setMeshPolygonsVertexAttribute,
|
|
110
|
-
};
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
import type { Locator, Page } from "@playwright/test";
|
|
2
|
-
import { meshViewerObjectType, polygonsFeatureName } from "@vease_tests/utils/constants";
|
|
3
|
-
import {
|
|
4
|
-
setFeatureColor,
|
|
5
|
-
setFeatureColorInput,
|
|
6
|
-
setFeatureColorWithSlider,
|
|
7
|
-
setFeatureColoringStyle,
|
|
8
|
-
setFeatureCopyColor,
|
|
9
|
-
setFeatureOpacity,
|
|
10
|
-
setFeaturePasteColorInput,
|
|
11
|
-
} from "@vease_tests/utils/data/helpers/color";
|
|
12
|
-
|
|
13
|
-
async function setMeshPolygonsOpacity(window: Page, percent: number): Promise<void> {
|
|
14
|
-
await setFeatureOpacity(window, meshViewerObjectType, polygonsFeatureName, percent);
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
async function setMeshPolygonsColor(window: Page): Promise<void> {
|
|
18
|
-
await setFeatureColor(window, meshViewerObjectType, polygonsFeatureName);
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
async function setMeshPolygonsColorWithSlider(window: Page): Promise<void> {
|
|
22
|
-
await setFeatureColorWithSlider(window, meshViewerObjectType, polygonsFeatureName);
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
async function copyMeshPolygonsColor(window: Page): Promise<void> {
|
|
26
|
-
await setFeatureCopyColor(window, meshViewerObjectType, polygonsFeatureName);
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
async function setMeshPolygonsColorInput(window: Page, colorText: string): Promise<void> {
|
|
30
|
-
await setFeatureColorInput(window, meshViewerObjectType, polygonsFeatureName, colorText);
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
async function pasteMeshPolygonsColorInput(
|
|
34
|
-
window: Page,
|
|
35
|
-
container: Page | Locator = window,
|
|
36
|
-
): Promise<void> {
|
|
37
|
-
await setFeaturePasteColorInput(window, meshViewerObjectType, polygonsFeatureName, container);
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
async function setMeshPolygonsColoringStyle(window: Page, style: string): Promise<void> {
|
|
41
|
-
await setFeatureColoringStyle(window, meshViewerObjectType, polygonsFeatureName, style);
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
export {
|
|
45
|
-
copyMeshPolygonsColor,
|
|
46
|
-
pasteMeshPolygonsColorInput,
|
|
47
|
-
setMeshPolygonsColor,
|
|
48
|
-
setMeshPolygonsColorInput,
|
|
49
|
-
setMeshPolygonsColorWithSlider,
|
|
50
|
-
setMeshPolygonsColoringStyle,
|
|
51
|
-
setMeshPolygonsOpacity,
|
|
52
|
-
};
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
// Node imports
|
|
2
|
-
import path from "node:path";
|
|
3
|
-
|
|
4
|
-
// Third party imports
|
|
5
|
-
import type { Page } from "@playwright/test";
|
|
6
|
-
|
|
7
|
-
// Local imports
|
|
8
|
-
import { meshViewerObjectType, polygonsFeatureName } from "@vease_tests/utils/constants";
|
|
9
|
-
import { setFeatureTextures } from "@vease_tests/utils/data/helpers/textures";
|
|
10
|
-
|
|
11
|
-
const __dirname = import.meta.dirname;
|
|
12
|
-
const texture = {
|
|
13
|
-
name: "test_texture",
|
|
14
|
-
filePath: path.join(__dirname, "..", "..", "..", "..", "tests", "data", "test_texture.png"),
|
|
15
|
-
};
|
|
16
|
-
|
|
17
|
-
async function setMeshPolygonsTextures(window: Page): Promise<void> {
|
|
18
|
-
await setFeatureTextures(window, `${meshViewerObjectType}${polygonsFeatureName}Menu`, texture);
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
export { setMeshPolygonsTextures };
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import type { Page } from "@playwright/test";
|
|
2
|
-
import { meshViewerObjectType } from "@vease_tests/utils/constants.js";
|
|
3
|
-
import { setPolygonsVisibility } from "@vease_tests/utils/viewer_interaction.js";
|
|
4
|
-
|
|
5
|
-
async function setMeshPolygonsVisibility(window: Page, visibility: boolean): Promise<void> {
|
|
6
|
-
await setPolygonsVisibility(window, meshViewerObjectType, visibility);
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
export { setMeshPolygonsVisibility };
|
|
@@ -1,103 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
SLIDER_PINK,
|
|
3
|
-
clickColorPickerCanvas,
|
|
4
|
-
clickColorPickerSlider,
|
|
5
|
-
} from "@vease_tests/utils/data/helpers/color_picker";
|
|
6
|
-
import {
|
|
7
|
-
ensureMenuOpen,
|
|
8
|
-
moveMouseOutOfTheWay,
|
|
9
|
-
openStyleMenu,
|
|
10
|
-
} from "@vease_tests/utils/viewer_interaction";
|
|
11
|
-
import {
|
|
12
|
-
meshViewerObjectType,
|
|
13
|
-
polyhedraFeatureName,
|
|
14
|
-
polyhedronAttributeType,
|
|
15
|
-
vertexAttributeType,
|
|
16
|
-
} from "@vease_tests/utils/constants";
|
|
17
|
-
import {
|
|
18
|
-
setFeatureAttribute,
|
|
19
|
-
setFeatureColorMap,
|
|
20
|
-
setFeatureItem,
|
|
21
|
-
} from "@vease_tests/utils/data/helpers/attribute";
|
|
22
|
-
import type { Page } from "@playwright/test";
|
|
23
|
-
import { waitForActionSettled } from "@vease_tests/utils/wait_for_action_settled";
|
|
24
|
-
|
|
25
|
-
interface AttributeOptions {
|
|
26
|
-
item?: number;
|
|
27
|
-
colorMap?: string;
|
|
28
|
-
min?: number | string;
|
|
29
|
-
max?: number | string;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
async function setMeshPolyhedraVertexAttribute(
|
|
33
|
-
window: Page,
|
|
34
|
-
attributeName: string,
|
|
35
|
-
options: AttributeOptions = {},
|
|
36
|
-
): Promise<void> {
|
|
37
|
-
await setFeatureAttribute(
|
|
38
|
-
window,
|
|
39
|
-
meshViewerObjectType,
|
|
40
|
-
polyhedraFeatureName,
|
|
41
|
-
vertexAttributeType,
|
|
42
|
-
attributeName,
|
|
43
|
-
options,
|
|
44
|
-
);
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
async function setMeshPolyhedraPolyhedronAttribute(
|
|
48
|
-
window: Page,
|
|
49
|
-
attributeName: string,
|
|
50
|
-
options: AttributeOptions = {},
|
|
51
|
-
): Promise<void> {
|
|
52
|
-
await setFeatureAttribute(
|
|
53
|
-
window,
|
|
54
|
-
meshViewerObjectType,
|
|
55
|
-
polyhedraFeatureName,
|
|
56
|
-
polyhedronAttributeType,
|
|
57
|
-
attributeName,
|
|
58
|
-
options,
|
|
59
|
-
);
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
async function setMeshPolyhedraItem(window: Page, item: number): Promise<void> {
|
|
63
|
-
const menuTestId = `${meshViewerObjectType}${polyhedraFeatureName}Menu`;
|
|
64
|
-
await setFeatureItem(window, menuTestId, item);
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
async function setMeshPolyhedraColorMap(window: Page, colorMap: string): Promise<void> {
|
|
68
|
-
const menuTestId = `${meshViewerObjectType}${polyhedraFeatureName}Menu`;
|
|
69
|
-
await setFeatureColorMap(window, menuTestId, colorMap);
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
async function openMeshPolyhedraMenu(window: Page): Promise<void> {
|
|
73
|
-
const menuTestId = `${meshViewerObjectType}${polyhedraFeatureName}Menu`;
|
|
74
|
-
await openStyleMenu(window, menuTestId);
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
async function setMeshPolyhedraNoDataColor(window: Page): Promise<void> {
|
|
78
|
-
const menuTestId = `${meshViewerObjectType}${polyhedraFeatureName}Menu`;
|
|
79
|
-
await ensureMenuOpen(window, menuTestId);
|
|
80
|
-
const noDataColorBtn = window.getByTestId("noDataColorBtn").first();
|
|
81
|
-
await noDataColorBtn.waitFor({ state: "visible" });
|
|
82
|
-
await noDataColorBtn.click();
|
|
83
|
-
await waitForActionSettled(window);
|
|
84
|
-
await window
|
|
85
|
-
.getByTestId("colorPicker")
|
|
86
|
-
.filter({ visible: true })
|
|
87
|
-
.first()
|
|
88
|
-
.waitFor({ state: "visible" });
|
|
89
|
-
await clickColorPickerSlider(window, SLIDER_PINK);
|
|
90
|
-
await clickColorPickerCanvas(window);
|
|
91
|
-
await noDataColorBtn.click();
|
|
92
|
-
await moveMouseOutOfTheWay(window);
|
|
93
|
-
await waitForActionSettled(window);
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
export {
|
|
97
|
-
openMeshPolyhedraMenu,
|
|
98
|
-
setMeshPolyhedraColorMap,
|
|
99
|
-
setMeshPolyhedraItem,
|
|
100
|
-
setMeshPolyhedraNoDataColor,
|
|
101
|
-
setMeshPolyhedraPolyhedronAttribute,
|
|
102
|
-
setMeshPolyhedraVertexAttribute,
|
|
103
|
-
};
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
import type { Locator, Page } from "@playwright/test";
|
|
2
|
-
import { meshViewerObjectType, polyhedraFeatureName } from "@vease_tests/utils/constants";
|
|
3
|
-
import {
|
|
4
|
-
setFeatureColor,
|
|
5
|
-
setFeatureColorBlack,
|
|
6
|
-
setFeatureColorInput,
|
|
7
|
-
setFeatureColorWithSlider,
|
|
8
|
-
setFeatureColoringStyle,
|
|
9
|
-
setFeatureCopyColor,
|
|
10
|
-
setFeatureOpacity,
|
|
11
|
-
setFeaturePasteColorInput,
|
|
12
|
-
} from "@vease_tests/utils/data/helpers/color";
|
|
13
|
-
|
|
14
|
-
async function setMeshPolyhedraOpacity(window: Page, percent: number): Promise<void> {
|
|
15
|
-
await setFeatureOpacity(window, meshViewerObjectType, polyhedraFeatureName, percent);
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
async function setMeshPolyhedraColor(window: Page): Promise<void> {
|
|
19
|
-
await setFeatureColor(window, meshViewerObjectType, polyhedraFeatureName);
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
async function setMeshPolyhedraColorBlack(window: Page): Promise<void> {
|
|
23
|
-
await setFeatureColorBlack(window, meshViewerObjectType, polyhedraFeatureName);
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
async function setMeshPolyhedraColorWithSlider(window: Page): Promise<void> {
|
|
27
|
-
await setFeatureColorWithSlider(window, meshViewerObjectType, polyhedraFeatureName);
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
async function copyMeshPolyhedraColor(window: Page): Promise<void> {
|
|
31
|
-
await setFeatureCopyColor(window, meshViewerObjectType, polyhedraFeatureName);
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
async function setMeshPolyhedraColorInput(window: Page, colorText: string): Promise<void> {
|
|
35
|
-
await setFeatureColorInput(window, meshViewerObjectType, polyhedraFeatureName, colorText);
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
async function pasteMeshPolyhedraColorInput(
|
|
39
|
-
window: Page,
|
|
40
|
-
container: Page | Locator = window,
|
|
41
|
-
): Promise<void> {
|
|
42
|
-
await setFeaturePasteColorInput(window, meshViewerObjectType, polyhedraFeatureName, container);
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
async function setMeshPolyhedraColoringStyle(window: Page, style: string): Promise<void> {
|
|
46
|
-
await setFeatureColoringStyle(window, meshViewerObjectType, polyhedraFeatureName, style);
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
export {
|
|
50
|
-
copyMeshPolyhedraColor,
|
|
51
|
-
pasteMeshPolyhedraColorInput,
|
|
52
|
-
setMeshPolyhedraColor,
|
|
53
|
-
setMeshPolyhedraColorBlack,
|
|
54
|
-
setMeshPolyhedraColorInput,
|
|
55
|
-
setMeshPolyhedraColorWithSlider,
|
|
56
|
-
setMeshPolyhedraColoringStyle,
|
|
57
|
-
setMeshPolyhedraOpacity,
|
|
58
|
-
};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import type { Page } from "@playwright/test";
|
|
2
|
-
import { meshViewerObjectType } from "@vease_tests/utils/constants.js";
|
|
3
|
-
import { setPolyhedraVisibility } from "@vease_tests/utils/viewer_interaction.js";
|
|
4
|
-
|
|
5
|
-
async function setMeshPolyhedraVisibility(window: Page, visibility: boolean): Promise<void> {
|
|
6
|
-
await setPolyhedraVisibility(window, meshViewerObjectType, visibility);
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
export { setMeshPolyhedraVisibility };
|