@camunda/e2e-test-suite 0.0.524 → 0.0.526
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.
|
@@ -629,7 +629,11 @@ class ModelerCreatePage {
|
|
|
629
629
|
await this.continueToPlayButton.click({ timeout });
|
|
630
630
|
// Play environment provisioning involves Zeebe deploy + cluster
|
|
631
631
|
// bootstrap; on slower clusters this can take several minutes.
|
|
632
|
-
|
|
632
|
+
// On a second visit the env is already provisioned — Play loads
|
|
633
|
+
// directly without the toast, so accept either condition.
|
|
634
|
+
await (0, test_1.expect)(this.page
|
|
635
|
+
.getByText('Play environment is ready')
|
|
636
|
+
.or(this.page.getByTestId('undefined-Start instance'))).toBeVisible({ timeout: 180000 });
|
|
633
637
|
return; // Exit if successful
|
|
634
638
|
}
|
|
635
639
|
catch (error) {
|
|
@@ -111,14 +111,16 @@ class PlayPage {
|
|
|
111
111
|
'Start instance',
|
|
112
112
|
];
|
|
113
113
|
for (const buttonName of buttonVariations) {
|
|
114
|
-
const button = this.page
|
|
114
|
+
const button = this.page
|
|
115
|
+
.getByRole('dialog')
|
|
116
|
+
.getByRole('button', { name: buttonName });
|
|
115
117
|
const count = await button.count();
|
|
116
118
|
if (count > 0) {
|
|
117
119
|
await button.click();
|
|
118
120
|
return;
|
|
119
121
|
}
|
|
120
122
|
}
|
|
121
|
-
|
|
123
|
+
// No modal present — Play loaded directly without a start modal (env already provisioned)
|
|
122
124
|
}
|
|
123
125
|
async waitForInstanceDetailsToBeLoaded() {
|
|
124
126
|
const maxRetries = 3;
|