@camunda/e2e-test-suite 0.0.1622 → 0.0.1624
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.
|
@@ -713,6 +713,24 @@ class ModelerCreatePage {
|
|
|
713
713
|
timeout: 120000,
|
|
714
714
|
});
|
|
715
715
|
await this.deployAndRunMainButton.click({ timeout: 30000 });
|
|
716
|
+
// Every caller goes straight on to the deploy dialog (selectCluster
|
|
717
|
+
// waits 30s for it). A click that lands while the freshly booted
|
|
718
|
+
// modeler is still wiring up its toolbar is swallowed, so the dialog
|
|
719
|
+
// never opens and the test fails on getByRole('dialog') with the
|
|
720
|
+
// button sitting there unclicked. Confirm the dialog opened, re-click
|
|
721
|
+
// once if not, and only then fall back to the recovery below.
|
|
722
|
+
const dialogOpened = async () => this.dialog
|
|
723
|
+
.first()
|
|
724
|
+
.waitFor({ state: 'visible', timeout: 30000 })
|
|
725
|
+
.then(() => true)
|
|
726
|
+
.catch(() => false);
|
|
727
|
+
if (await dialogOpened()) {
|
|
728
|
+
return;
|
|
729
|
+
}
|
|
730
|
+
await this.deployAndRunMainButton.click({ timeout: 30000 });
|
|
731
|
+
if (!(await dialogOpened())) {
|
|
732
|
+
throw new Error('Deploy & run dialog did not open after clicking');
|
|
733
|
+
}
|
|
716
734
|
return;
|
|
717
735
|
}
|
|
718
736
|
catch (error) {
|