@camunda/e2e-test-suite 0.0.55 → 0.0.57
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.
|
@@ -118,6 +118,12 @@ class ClusterDetailsPage {
|
|
|
118
118
|
async clickAlertsTab() {
|
|
119
119
|
await (0, test_1.expect)(this.alertsTab).toBeVisible({ timeout: 40000 });
|
|
120
120
|
await this.alertsTab.click();
|
|
121
|
+
// Wait for page to load - either button will be visible depending on whether alerts exist
|
|
122
|
+
await (0, test_1.expect)(async () => {
|
|
123
|
+
const hasCreateFirst = await this.createFirstAlertButton.isVisible();
|
|
124
|
+
const hasCreateNew = await this.createNewAlertButton.isVisible();
|
|
125
|
+
(0, test_1.expect)(hasCreateFirst || hasCreateNew).toBe(true);
|
|
126
|
+
}).toPass({ timeout: 30000, intervals: [2000] });
|
|
121
127
|
}
|
|
122
128
|
async clickCreateFirstAlertButton() {
|
|
123
129
|
await (0, test_1.expect)(this.createFirstAlertButton).toBeVisible({ timeout: 40000 });
|