@camunda/e2e-test-suite 0.0.817 → 0.0.819
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.
|
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.ModelerHomePage = void 0;
|
|
4
4
|
const test_1 = require("@playwright/test");
|
|
5
5
|
const expectLocatorWithRetry_1 = require("../../utils/assertionHelpers/expectLocatorWithRetry");
|
|
6
|
+
const NavigationPage_1 = require("./NavigationPage");
|
|
6
7
|
class ModelerHomePage {
|
|
7
8
|
page;
|
|
8
9
|
defaultFolderName = 'Cross Component Test Project';
|
|
@@ -139,8 +140,20 @@ class ModelerHomePage {
|
|
|
139
140
|
}
|
|
140
141
|
catch (error) {
|
|
141
142
|
if (attempt < maxAttempts - 1) {
|
|
142
|
-
console.log(`createCrossComponentProjectFolder attempt ${attempt + 1} failed.
|
|
143
|
-
|
|
143
|
+
console.log(`createCrossComponentProjectFolder attempt ${attempt + 1} failed. Re-authenticating and retrying...`);
|
|
144
|
+
// A transient web-modeler 500 on /api/internal/login right after the
|
|
145
|
+
// OAuth callback makes the SPA log the user out, destroying the
|
|
146
|
+
// Keycloak SSO session. A bare page.reload() then lands back on the
|
|
147
|
+
// empty login form and never re-authenticates, so every remaining
|
|
148
|
+
// attempt waits out its timeout on the login page. Re-run the full
|
|
149
|
+
// navigation+login instead so a recovered backend can complete the
|
|
150
|
+
// login on the next attempt.
|
|
151
|
+
try {
|
|
152
|
+
await new NavigationPage_1.NavigationPage(this.page).goToModeler();
|
|
153
|
+
}
|
|
154
|
+
catch (navError) {
|
|
155
|
+
console.log(`Re-navigation to Modeler failed: ${navError}`);
|
|
156
|
+
}
|
|
144
157
|
await this.page.waitForTimeout(retryWaitMs);
|
|
145
158
|
}
|
|
146
159
|
else {
|