@camunda/e2e-test-suite 0.0.1442 → 0.0.1443
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.
|
@@ -623,6 +623,27 @@ class ModelerCreatePage {
|
|
|
623
623
|
timeout: 120000,
|
|
624
624
|
});
|
|
625
625
|
await this.clickDeploySubButtonWithRetry();
|
|
626
|
+
// A nightly trace shows the force-click landing ~270ms after the dialog
|
|
627
|
+
// opened, while it was still animating in: Hub dropped it, the dialog
|
|
628
|
+
// stayed open with an idle Deploy button and no deploy ever started.
|
|
629
|
+
// When the dialog is still open, click Deploy again.
|
|
630
|
+
const maxDeployAttempts = 3;
|
|
631
|
+
for (let attempt = 1; attempt < maxDeployAttempts; attempt++) {
|
|
632
|
+
const deployed = await this.viewProcessLink
|
|
633
|
+
.waitFor({ state: 'visible', timeout: 60000 })
|
|
634
|
+
.then(() => true)
|
|
635
|
+
.catch(() => false);
|
|
636
|
+
if (deployed) {
|
|
637
|
+
break;
|
|
638
|
+
}
|
|
639
|
+
const stillOpen = (await this.deployDiagramDialog.isVisible()) &&
|
|
640
|
+
(await this.deploySubButton.isEnabled().catch(() => false));
|
|
641
|
+
if (!stillOpen) {
|
|
642
|
+
break;
|
|
643
|
+
}
|
|
644
|
+
console.warn(`Deploy click was not registered (attempt ${attempt}/${maxDeployAttempts}); clicking Deploy again.`);
|
|
645
|
+
await this.deploySubButton.click({ timeout: 30000 });
|
|
646
|
+
}
|
|
626
647
|
await (0, test_1.expect)(this.viewProcessLink).toBeVisible({
|
|
627
648
|
timeout: 180000,
|
|
628
649
|
});
|