@geode/opengeodeweb-front 12.1.0-rc.3 → 12.1.0-rc.5
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/browser/helpers/object_trees/model_components_object_tree.js +6 -2
- package/app/components/CrsSelector.vue +1 -1
- package/app/components/Viewer/ObjectTree/Base/CommonTreeView.vue +0 -1
- package/app/components/Viewer/ObjectTree/Views/ModelTree.vue +0 -1
- package/package.json +1 -1
- package/server/utils/ws_client.ts +1 -1
- package/tests/browser/helpers/object_trees/model_components_object_tree.ts +4 -1
|
@@ -102,8 +102,12 @@ async function hideAllComponentLeafRows(window, categoryName) {
|
|
|
102
102
|
const leafRows = tree.getByTestId("treeRowWrapper").filter({ hasText: "00000000-" });
|
|
103
103
|
const count = await leafRows.count();
|
|
104
104
|
for (let i = 0; i < count; i += 1) {
|
|
105
|
-
const
|
|
106
|
-
|
|
105
|
+
const row = leafRows.nth(i);
|
|
106
|
+
const eyeBtn = row.getByTestId("visibleObjectEyeButton").first();
|
|
107
|
+
if (await eyeBtn.isVisible()) {
|
|
108
|
+
await eyeBtn.click({ force: true });
|
|
109
|
+
await row.getByTestId("hiddenObjectEyeButton").first().waitFor({ state: "attached" });
|
|
110
|
+
}
|
|
107
111
|
}
|
|
108
112
|
await waitForActionSettled(window);
|
|
109
113
|
}
|
|
@@ -40,7 +40,7 @@ function row_props({ item }: { item: CRS }): Record<string, unknown> {
|
|
|
40
40
|
class: ["crs-row", { "bg-primary": selected }],
|
|
41
41
|
tabindex: 0,
|
|
42
42
|
"aria-selected": selected,
|
|
43
|
-
onKeydown: (event: KeyboardEvent) => {
|
|
43
|
+
onKeydown: (event: KeyboardEvent): void => {
|
|
44
44
|
if (event.key === "Enter") {
|
|
45
45
|
select_crs(item);
|
|
46
46
|
}
|
|
@@ -242,7 +242,6 @@ function getLeafViewerIds(item: CollectionTreeItem): number[] {
|
|
|
242
242
|
:scroll-top="currentView?.scrollTop || 0"
|
|
243
243
|
class="transparent-treeview virtual-tree-height"
|
|
244
244
|
@update:selected="(val) => onUpdateSelection(val as string[])"
|
|
245
|
-
@click:item="onUpdateSelection([$event.id as string, ...visibleComponents])"
|
|
246
245
|
@update:scroll-top="treeviewStore.setScrollTop(id, $event)"
|
|
247
246
|
@hover:enter="
|
|
248
247
|
({ item, immediate }) =>
|
package/package.json
CHANGED
|
@@ -171,7 +171,7 @@ function createServerWsRpcClient(baseUrl: string): ServerWsRpcClient {
|
|
|
171
171
|
function getConnection(): ReturnType<ServerWsRpcClient["getConnection"]> {
|
|
172
172
|
return {
|
|
173
173
|
getSession: () => ({
|
|
174
|
-
call: async (rpc: string, [params]: readonly [object]) => {
|
|
174
|
+
call: async (rpc: string, [params]: readonly [object]): Promise<unknown> => {
|
|
175
175
|
const result = await call(rpc, params);
|
|
176
176
|
return result;
|
|
177
177
|
},
|
|
@@ -187,10 +187,13 @@ async function hideAllComponentLeafRows(window: Page, categoryName: string): Pro
|
|
|
187
187
|
const leafRows = tree.getByTestId("treeRowWrapper").filter({ hasText: "00000000-" });
|
|
188
188
|
const count = await leafRows.count();
|
|
189
189
|
for (let i = 0; i < count; i += 1) {
|
|
190
|
-
const
|
|
190
|
+
const row = leafRows.nth(i);
|
|
191
|
+
const eyeBtn = row.getByTestId("visibleObjectEyeButton").first();
|
|
191
192
|
// oxlint-disable no-await-in-loop
|
|
192
193
|
if (await eyeBtn.isVisible()) {
|
|
193
194
|
await eyeBtn.click({ force: true });
|
|
195
|
+
// The shim clicks through a positional selector (nth among the tree's eye buttons): wait for this row to flip before the next click, or the index shifts under it
|
|
196
|
+
await row.getByTestId("hiddenObjectEyeButton").first().waitFor({ state: "attached" });
|
|
194
197
|
}
|
|
195
198
|
}
|
|
196
199
|
await waitForActionSettled(window);
|