@camunda/e2e-test-suite 0.0.538 → 0.0.539
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.
|
@@ -694,18 +694,20 @@ class ModelerCreatePage {
|
|
|
694
694
|
await (0, test_1.expect)(this.page.getByTestId('instance-header').getByText(scenarioName)).toBeVisible();
|
|
695
695
|
}
|
|
696
696
|
async instanceStartedAssertion() {
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
697
|
+
const success = this.page.getByText('Instance started!');
|
|
698
|
+
const failure = this.page.getByText('Instance could not be started');
|
|
699
|
+
// Race success against the error banner so we don't burn 180 s waiting
|
|
700
|
+
// for a toast that will never appear when Zeebe rejects the start request.
|
|
701
|
+
for (let attempt = 1; attempt <= 2; attempt++) {
|
|
702
|
+
await (0, test_1.expect)(success.or(failure)).toBeVisible({ timeout: 60000 });
|
|
703
|
+
if (await success.isVisible())
|
|
704
|
+
return;
|
|
705
|
+
if (attempt === 2) {
|
|
706
|
+
throw new Error('Process instance could not be started after 2 attempts');
|
|
707
|
+
}
|
|
703
708
|
await this.clickStartInstanceMainButton();
|
|
704
709
|
await this.completeDeploymentEndpointConfiguration();
|
|
705
710
|
await this.clickStartInstanceSubButton();
|
|
706
|
-
await (0, test_1.expect)(this.page.getByText('Instance started!')).toBeVisible({
|
|
707
|
-
timeout: 180000,
|
|
708
|
-
});
|
|
709
711
|
}
|
|
710
712
|
}
|
|
711
713
|
async assertImplementationOption(implementationType) {
|
|
@@ -70,12 +70,12 @@ class OptimizeReportPage {
|
|
|
70
70
|
}
|
|
71
71
|
async waitUntilUserTaskProcessIsVisible(processName) {
|
|
72
72
|
await (0, test_1.expect)(this.page.getByText(processName, { exact: true })).toBeVisible({
|
|
73
|
-
timeout:
|
|
73
|
+
timeout: 30000,
|
|
74
74
|
});
|
|
75
75
|
}
|
|
76
76
|
async clickUserTaskProcess(processName) {
|
|
77
77
|
await this.page.getByText(processName, { exact: true }).first().click();
|
|
78
|
-
await (0,
|
|
78
|
+
await (0, test_1.expect)(this.versionSelection).toBeEnabled({ timeout: 30000 });
|
|
79
79
|
}
|
|
80
80
|
async clickVersionSelection() {
|
|
81
81
|
await this.versionSelection.click();
|