@camunda/e2e-test-suite 0.0.1396 → 0.0.1398
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.
|
@@ -917,13 +917,28 @@ class ModelerHomePage {
|
|
|
917
917
|
return;
|
|
918
918
|
if ((await scopeFilter.innerText()).includes('All workspaces'))
|
|
919
919
|
return;
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
920
|
+
// Opening the Select and picking the option races with Hub's workspace
|
|
921
|
+
// list finishing its fetch: that data load re-renders the overview and
|
|
922
|
+
// detaches the just-opened Radix option mid-click ("element was detached
|
|
923
|
+
// from the DOM"). Retry the whole open-and-pick as a unit so a detach
|
|
924
|
+
// re-opens the dropdown instead of failing the step -- the committed
|
|
925
|
+
// filter text stays the success condition, so nothing is masked. Re-open
|
|
926
|
+
// only when the option isn't already showing, since clicking the trigger
|
|
927
|
+
// while the dropdown is open would toggle it shut.
|
|
928
|
+
const allWorkspacesOption = this.page.getByRole('option', {
|
|
929
|
+
name: 'All workspaces',
|
|
926
930
|
});
|
|
931
|
+
await (0, test_1.expect)(async () => {
|
|
932
|
+
if ((await scopeFilter.innerText()).includes('All workspaces'))
|
|
933
|
+
return;
|
|
934
|
+
if (!(await allWorkspacesOption.isVisible().catch(() => false))) {
|
|
935
|
+
await scopeFilter.click({ timeout: 10000 });
|
|
936
|
+
}
|
|
937
|
+
await allWorkspacesOption.click({ timeout: 10000 });
|
|
938
|
+
await (0, test_1.expect)(scopeFilter).toContainText('All workspaces', {
|
|
939
|
+
timeout: 10000,
|
|
940
|
+
});
|
|
941
|
+
}).toPass({ timeout: 30000, intervals: [1000, 2000, 5000] });
|
|
927
942
|
}
|
|
928
943
|
// Retries the whole detect-or-create sequence, not just its individual
|
|
929
944
|
// steps. Up to 27 test-user workers race to create/open this one shared
|