@camunda/e2e-test-suite 0.0.1811 → 0.0.1813
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.
|
@@ -436,9 +436,9 @@ class ClusterSecretsPage {
|
|
|
436
436
|
throw error;
|
|
437
437
|
}
|
|
438
438
|
}
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
});
|
|
439
|
+
// Accept the "Oops" fetch-error card as a settled state here: the reload +
|
|
440
|
+
// recovery loop below clears it, so hard-failing now would skip recovery.
|
|
441
|
+
await (0, test_1.expect)(this.createNewSecretButton.or(this.secretsFetchErrorReloadButton)).toBeVisible({ timeout: 60000 });
|
|
442
442
|
const clusterUrl = this.page.url();
|
|
443
443
|
await this.page.reload();
|
|
444
444
|
// Hub keeps the selected cluster tab out of the URL, so the reload lands
|
|
@@ -159,7 +159,30 @@ class OCIdentityRolesPage {
|
|
|
159
159
|
await this.assignUserButton.click({ timeout: 60000 });
|
|
160
160
|
await (0, test_1.expect)(this.assignUserModal).toBeVisible({ timeout: 30000 });
|
|
161
161
|
await this.assignUserModalInputField.fill(email);
|
|
162
|
-
|
|
162
|
+
// Same asynchronous authorizations-disable race as createRole: the PUT is
|
|
163
|
+
// rejected with a 403 until it lands, so resubmit only on that 403.
|
|
164
|
+
let submitError;
|
|
165
|
+
await (0, test_1.expect)(async () => {
|
|
166
|
+
if (submitError || !(await this.assignUserModal.isVisible())) {
|
|
167
|
+
return;
|
|
168
|
+
}
|
|
169
|
+
let response;
|
|
170
|
+
try {
|
|
171
|
+
[response] = await Promise.all([
|
|
172
|
+
this.page.waitForResponse((r) => r.request().method() === 'PUT' &&
|
|
173
|
+
new URL(r.url()).pathname.includes(`/v2/roles/${roleId}/users/`), { timeout: 30000 }),
|
|
174
|
+
this.assignUserModalAssignButton.click({ timeout: 30000 }),
|
|
175
|
+
]);
|
|
176
|
+
}
|
|
177
|
+
catch (error) {
|
|
178
|
+
submitError = error;
|
|
179
|
+
return;
|
|
180
|
+
}
|
|
181
|
+
(0, test_1.expect)(response.status(), 'PUT /v2/roles/.../users status').not.toBe(403);
|
|
182
|
+
}).toPass({ timeout: 300000, intervals: [10000, 15000, 30000] });
|
|
183
|
+
if (submitError) {
|
|
184
|
+
throw submitError;
|
|
185
|
+
}
|
|
163
186
|
await (0, test_1.expect)(this.assignUserModal).not.toBeVisible({ timeout: 30000 });
|
|
164
187
|
}
|
|
165
188
|
async createRole(role) {
|
|
@@ -253,7 +276,7 @@ class OCIdentityRolesPage {
|
|
|
253
276
|
await locator.click();
|
|
254
277
|
await (0, test_1.expect)(this.deleteRoleModal).toBeVisible();
|
|
255
278
|
await this.deleteRoleModalDeleteButton.click();
|
|
256
|
-
await (0, test_1.expect)(this.deleteRoleModal).not.toBeVisible();
|
|
279
|
+
await (0, test_1.expect)(this.deleteRoleModal).not.toBeVisible({ timeout: 30000 });
|
|
257
280
|
await (0, expectLocatorWithPagination_1.expectLocatorWithPagination)(this.page, locator, {
|
|
258
281
|
shouldBeVisible: false,
|
|
259
282
|
});
|
|
@@ -821,27 +821,36 @@ class ClusterDetailsPage {
|
|
|
821
821
|
async createAPIClient(name) {
|
|
822
822
|
const maxAttempts = 3;
|
|
823
823
|
for (let attempt = 1; attempt <= maxAttempts; attempt++) {
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
824
|
+
try {
|
|
825
|
+
await this.clickCreateClientButton();
|
|
826
|
+
await (0, test_1.expect)(this.createClientCredentialsDialog).toBeVisible({
|
|
827
|
+
timeout: 30000,
|
|
828
|
+
});
|
|
829
|
+
await this.fillAPIClientName(name);
|
|
830
|
+
await this.checkOrchestrationClusterCheckbox();
|
|
831
|
+
await this.checkOptimizeCheckbox();
|
|
832
|
+
await this.checkSecretsCheckbox();
|
|
833
|
+
await this.clickCreateButton();
|
|
834
|
+
// The credentials dialog only renders once POST .../clients resolves, and
|
|
835
|
+
// that call can take well over 20s on a freshly created cluster. When the
|
|
836
|
+
// Console API rejects the call instead, the credentials dialog never
|
|
837
|
+
// arrives and the create dialog stays open on its error banner, so close
|
|
838
|
+
// it and retry the create from a clean state rather than leaving the page
|
|
839
|
+
// wedged behind a modal nobody dismissed.
|
|
840
|
+
const created = await this.clientCredentialsDialog
|
|
841
|
+
.waitFor({ state: 'visible', timeout: 60000 })
|
|
842
|
+
.then(() => true)
|
|
843
|
+
.catch(() => false);
|
|
844
|
+
if (created) {
|
|
845
|
+
break;
|
|
846
|
+
}
|
|
847
|
+
}
|
|
848
|
+
catch (error) {
|
|
849
|
+
// Console's error boundary can replace the create form mid-create, so
|
|
850
|
+
// the Client Name field never renders; retry from a clean panel.
|
|
851
|
+
if (attempt === maxAttempts) {
|
|
852
|
+
throw error;
|
|
853
|
+
}
|
|
845
854
|
}
|
|
846
855
|
await this.dismissCreateClientDialogIfPresent();
|
|
847
856
|
if (attempt === maxAttempts) {
|
|
@@ -876,7 +876,19 @@ class ModelerHomePage {
|
|
|
876
876
|
// The empty state's own button avoids the Radix dropdown, whose option can
|
|
877
877
|
// stay "not stable" for the whole click timeout.
|
|
878
878
|
if (await switchButton.isVisible().catch(() => false)) {
|
|
879
|
-
|
|
879
|
+
// The empty state flashes while the workspace list is still loading; if
|
|
880
|
+
// the list then resolves with workspaces under the current scope, the
|
|
881
|
+
// button unmounts on its own -- the same end state as clicking it -- so a
|
|
882
|
+
// click that fails only because it vanished is already success, while one
|
|
883
|
+
// that fails with the button still present is a real error.
|
|
884
|
+
try {
|
|
885
|
+
await switchButton.click({ timeout: 10000 });
|
|
886
|
+
}
|
|
887
|
+
catch (error) {
|
|
888
|
+
if (await switchButton.isVisible().catch(() => false)) {
|
|
889
|
+
throw error;
|
|
890
|
+
}
|
|
891
|
+
}
|
|
880
892
|
await (0, test_1.expect)(switchButton).toBeHidden({ timeout: 10000 });
|
|
881
893
|
return;
|
|
882
894
|
}
|