@camunda/e2e-test-suite 0.0.1787 → 0.0.1788
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.
|
@@ -395,6 +395,26 @@ class ClusterDetailsPage {
|
|
|
395
395
|
break;
|
|
396
396
|
}
|
|
397
397
|
}
|
|
398
|
+
// Hub's Console view can crash into its app-level error boundary (React
|
|
399
|
+
// error #300) right after the PATCH succeeds, which removes the switch.
|
|
400
|
+
// The boundary itself asks for a reload; do that so the switch re-renders
|
|
401
|
+
// from the server state the assertion below checks.
|
|
402
|
+
const crashed = this.page.getByRole('heading', {
|
|
403
|
+
name: 'Something went wrong',
|
|
404
|
+
});
|
|
405
|
+
await this.authorizationsSwitch
|
|
406
|
+
.or(crashed)
|
|
407
|
+
.first()
|
|
408
|
+
.waitFor({ state: 'visible', timeout: 60000 })
|
|
409
|
+
.catch(() => { });
|
|
410
|
+
if (await crashed.isVisible().catch(() => false)) {
|
|
411
|
+
console.warn('Hub crashed into its error boundary after the authorizations ' +
|
|
412
|
+
'change; reloading settings.');
|
|
413
|
+
await this.page.reload({ waitUntil: 'domcontentloaded' });
|
|
414
|
+
await this.settingsTab.waitFor({ state: 'visible', timeout: 60000 });
|
|
415
|
+
await this.clickSettingsTab();
|
|
416
|
+
await this.waitForAuthorizationsSection();
|
|
417
|
+
}
|
|
398
418
|
await (0, test_1.expect)(this.authorizationsSwitch).toHaveAttribute('aria-checked', String(enabled), { timeout: 120000 });
|
|
399
419
|
return 'changed';
|
|
400
420
|
}
|