@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.
@@ -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
- await this.page.goBack();
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);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camunda/e2e-test-suite",
3
- "version": "0.0.1616",
3
+ "version": "0.0.1618",
4
4
  "description": "End-to-end test helpers for Camunda 8",
5
5
  "repository": {
6
6
  "type": "git",