@camunda/e2e-test-suite 0.0.835 → 0.0.837
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.
|
@@ -187,8 +187,19 @@ class ModelerHomePage {
|
|
|
187
187
|
catch (error) {
|
|
188
188
|
attempts++;
|
|
189
189
|
if (attempts < maxAttempts) {
|
|
190
|
-
console.log(`Attempt ${attempts} failed.
|
|
191
|
-
|
|
190
|
+
console.log(`Attempt ${attempts} failed. Re-navigating to Modeler and retrying...`);
|
|
191
|
+
// A transient web-modeler 500 on login right after the OAuth callback
|
|
192
|
+
// logs the user out and leaves the page on the Keycloak login form. A
|
|
193
|
+
// bare page.reload() then just reloads the login page and never
|
|
194
|
+
// re-authenticates, so every remaining attempt waits out its timeout
|
|
195
|
+
// on the login screen. Re-run the full navigation+login instead so a
|
|
196
|
+
// recovered backend can complete the login on the next attempt.
|
|
197
|
+
try {
|
|
198
|
+
await new NavigationPage_1.NavigationPage(this.page).goToModeler();
|
|
199
|
+
}
|
|
200
|
+
catch (navError) {
|
|
201
|
+
console.log(`Re-navigation to Modeler failed: ${navError}`);
|
|
202
|
+
}
|
|
192
203
|
await this.page.waitForLoadState('networkidle');
|
|
193
204
|
}
|
|
194
205
|
else {
|
|
@@ -83,9 +83,12 @@ _8_8_1.test.describe('Cluster Setup Tests', () => {
|
|
|
83
83
|
await homePage.clickSkipCustomization();
|
|
84
84
|
await modelerHomePage.createCrossComponentProjectFolder();
|
|
85
85
|
await modelerHomePage.clickHomeBreadcrumb();
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
86
|
+
// The project-rename PATCH commits on the backend, but navigating to
|
|
87
|
+
// Home right after can render the SPA's stale (pre-rename) project
|
|
88
|
+
// list without refetching, so the folder never appears under a plain
|
|
89
|
+
// toBeVisible. Reload between retries so the freshly renamed folder is
|
|
90
|
+
// fetched from the server and asserted visible.
|
|
91
|
+
await (0, UtilitiesPage_1.assertLocatorVisibleWithRetry)(page, modelerHomePage.crossComponentProjectFolder, 'cross component project folder', 30000, false, 5);
|
|
89
92
|
});
|
|
90
93
|
});
|
|
91
94
|
}
|