@camunda/e2e-test-suite 0.0.1616 → 0.0.1618
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.
- package/dist/pages/8.9/AppsPage.js +14 -1
- package/package.json +1 -1
|
@@ -309,7 +309,20 @@ class AppsPage {
|
|
|
309
309
|
// can stop on one of the app's own login-redirect entries, and the next
|
|
310
310
|
// Hub sidebar lookup then runs against the app instead of Hub.
|
|
311
311
|
async goBackToHub() {
|
|
312
|
-
|
|
312
|
+
try {
|
|
313
|
+
await this.page.goBack();
|
|
314
|
+
}
|
|
315
|
+
catch (error) {
|
|
316
|
+
// Leaving an app's no-permission page, the history entry goBack()
|
|
317
|
+
// lands on can redirect straight away (the app's login redirect or
|
|
318
|
+
// Hub's own), which aborts goBack()'s "load" wait with
|
|
319
|
+
// net::ERR_ABORTED (nightly 41952484941). The history move itself
|
|
320
|
+
// happened, so recover through the hubReturnUrl fallback below
|
|
321
|
+
// rather than failing the step. Anything else is rethrown.
|
|
322
|
+
if (!this.hubReturnUrl || !String(error).includes('ERR_ABORTED')) {
|
|
323
|
+
throw error;
|
|
324
|
+
}
|
|
325
|
+
}
|
|
313
326
|
if (this.hubReturnUrl &&
|
|
314
327
|
!new URL(this.page.url()).hostname.startsWith('hub.')) {
|
|
315
328
|
await this.page.goto(this.hubReturnUrl);
|