@geode/opengeodeweb-front 12.1.0-rc.4 → 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.
@@ -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 eyeBtn = leafRows.nth(i).getByTestId("visibleObjectEyeButton").first();
106
- if (await eyeBtn.isVisible()) await eyeBtn.click({ force: true });
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
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@geode/opengeodeweb-front",
3
- "version": "12.1.0-rc.4",
3
+ "version": "12.1.0-rc.5",
4
4
  "description": "OpenSource Vue/Nuxt/Pinia/Vuetify framework for web applications",
5
5
  "homepage": "https://github.com/Geode-solutions/OpenGeodeWeb-Front",
6
6
  "bugs": {
@@ -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 eyeBtn = leafRows.nth(i).getByTestId("visibleObjectEyeButton").first();
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);