@camunda/e2e-test-suite 0.0.1346 → 0.0.1348
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.
|
@@ -305,14 +305,23 @@ class NavigationPage {
|
|
|
305
305
|
timeout: 60000,
|
|
306
306
|
waitUntil: 'domcontentloaded',
|
|
307
307
|
});
|
|
308
|
-
|
|
309
|
-
|
|
308
|
+
// On a fresh install Optimize can sit behind an nginx 503 for minutes
|
|
309
|
+
// after the other apps are up. `goTo` rides that out across its retry
|
|
310
|
+
// attempts; this helper has no retry loop, so it waits on the wall clock
|
|
311
|
+
// instead. If the gateway page outlasts the budget, fail on it here: the
|
|
312
|
+
// caller's denial assertion would otherwise time out with a "not found"
|
|
313
|
+
// that hides the outage.
|
|
314
|
+
const gatewayBudgetMs = constants_1._1_SECOND_IN_MS * 180;
|
|
315
|
+
const gatewayDeadline = Date.now() + gatewayBudgetMs;
|
|
316
|
+
while (Date.now() < gatewayDeadline && (await this.isGatewayErrorPage())) {
|
|
310
317
|
await (0, sleep_1.sleep)(constants_1._1_SECOND_IN_MS * 5);
|
|
311
318
|
await this.page.goto(OPTIMIZE_CONTEXT_PATH, {
|
|
312
319
|
timeout: 60000,
|
|
313
320
|
waitUntil: 'domcontentloaded',
|
|
314
321
|
});
|
|
315
|
-
|
|
322
|
+
}
|
|
323
|
+
if (await this.isGatewayErrorPage()) {
|
|
324
|
+
throw new Error(`${OPTIMIZE_CONTEXT_PATH} still served a 50x gateway page after ${gatewayBudgetMs}ms`);
|
|
316
325
|
}
|
|
317
326
|
await new LoginPage_1.LoginPage(this.page).login(username, password);
|
|
318
327
|
}
|
package/dist/test-setup.js
CHANGED
|
@@ -102,7 +102,13 @@ async function captureFailureVideo(page, testInfo) {
|
|
|
102
102
|
if (testInfo.status === 'passed' || testInfo.status === 'skipped') {
|
|
103
103
|
return;
|
|
104
104
|
}
|
|
105
|
-
|
|
105
|
+
// actions/upload-artifact rejects a path containing " : < > | * ? or a
|
|
106
|
+
// newline, and a rejected path fails the whole upload step -- and with it
|
|
107
|
+
// the job, however the tests themselves went. Titles carry those characters
|
|
108
|
+
// routinely ("DUP-01: duplicating a cluster ..."), so replace them rather
|
|
109
|
+
// than name the file after the raw title.
|
|
110
|
+
const fileSafeTitle = testInfo.title.replace(/["*:<>?|\r\n/\\]+/g, '-');
|
|
111
|
+
const videoPath = `test-results/videos/video-${fileSafeTitle}-chromium.webm`;
|
|
106
112
|
const video = await page.video();
|
|
107
113
|
if (video) {
|
|
108
114
|
await page.close(); // Close explicitly to unblock saveAs
|
|
@@ -76,15 +76,12 @@ SM_8_10_1.test.describe('Identity User Flow Tests', () => {
|
|
|
76
76
|
});
|
|
77
77
|
if (node_process_1.default.env.IS_OPTIMIZE !== 'false') {
|
|
78
78
|
await SM_8_10_1.test.step('Ensure Optimize is not Accessible', async () => {
|
|
79
|
-
//
|
|
80
|
-
//
|
|
81
|
-
//
|
|
82
|
-
//
|
|
83
|
-
//
|
|
84
|
-
|
|
85
|
-
// real, unresolved authorization gap specific to Optimize, not a
|
|
86
|
-
// test setup issue. Flagged for follow-up rather than re-fixed here.
|
|
87
|
-
SM_8_10_1.test.skip(true, 'Optimize renders full dashboard for a zero-role user instead of denying access -- camunda/camunda#60317 still reproduces');
|
|
79
|
+
// Skipped due to bug #60317: https://github.com/camunda/camunda/issues/60317
|
|
80
|
+
// Still reproduces on 8.10.1-SNAPSHOT, which carries the fix attempt
|
|
81
|
+
// camunda/camunda#63400: a user whose Optimize role was removed gets
|
|
82
|
+
// the full dashboard (run 37296183382). Remove this skip once the issue
|
|
83
|
+
// is closed; the step then verifies the denial again.
|
|
84
|
+
SM_8_10_1.test.skip(true, 'Optimize grants full access to a user without the Optimize role -- camunda/camunda#60317');
|
|
88
85
|
await navigationPage.goToOptimizeWithoutAccess(credentials);
|
|
89
86
|
await (0, test_1.expect)(page.getByText('User has no authorization to access Optimize. Please check your Identity configuration')).toBeVisible({
|
|
90
87
|
timeout: 60000,
|