@camunda/e2e-test-suite 0.0.1292 → 0.0.1294
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.
|
@@ -525,13 +525,27 @@ class ModelerCreatePage {
|
|
|
525
525
|
await this.secondPlacedElement.click({ timeout: 60000 });
|
|
526
526
|
}
|
|
527
527
|
async clickFirstPlacedGateway() {
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
528
|
+
// isVisible() ignores its timeout, so wait for the context pad or the
|
|
529
|
+
// append indicator to confirm the gateway is actually selected. Right
|
|
530
|
+
// after switching back from Play the canvas may still be re-importing and
|
|
531
|
+
// drop the first click's selection.
|
|
532
|
+
const selectionIndicator = this.appendElementButton
|
|
533
|
+
.or(this.appendPreButton)
|
|
534
|
+
.first();
|
|
535
|
+
const maxAttempts = 3;
|
|
536
|
+
for (let attempt = 1; attempt <= maxAttempts; attempt++) {
|
|
537
|
+
try {
|
|
538
|
+
await (0, test_1.expect)(this.firstPlacedGateway).toBeVisible({ timeout: 30000 });
|
|
539
|
+
await this.firstPlacedGateway.click({ timeout: 10000 });
|
|
540
|
+
await (0, test_1.expect)(selectionIndicator).toBeVisible({ timeout: 10000 });
|
|
541
|
+
return;
|
|
542
|
+
}
|
|
543
|
+
catch (error) {
|
|
544
|
+
if (attempt === maxAttempts)
|
|
545
|
+
throw error;
|
|
546
|
+
if (attempt > 1)
|
|
547
|
+
await this.page.reload();
|
|
548
|
+
}
|
|
535
549
|
}
|
|
536
550
|
}
|
|
537
551
|
async clickSecondPlacedGateway() {
|
|
@@ -181,7 +181,26 @@ _8_9_1.test.describe('Console User Flow Tests @tasklistV2', () => {
|
|
|
181
181
|
await modelerHomePage.clickCrossComponentProjectFolder();
|
|
182
182
|
await modelerHomePage.clickProcessDiagram(processName);
|
|
183
183
|
await modelerCreatePage.runProcessInstance(alertFlowClusterName);
|
|
184
|
-
|
|
184
|
+
// Straight into the next run, no wait. The email assertion below expects
|
|
185
|
+
// ONE mail reporting "New Incidents: 2", which only happens when both
|
|
186
|
+
// incidents fall inside the same alert evaluation cycle; the 10s sleep
|
|
187
|
+
// that used to be here pushed them into separate cycles and Console sent
|
|
188
|
+
// a "New Incidents: 1" mail for each (nightly: "3 email(s) present",
|
|
189
|
+
// none matching). Ported from 8.8 (647375e5d).
|
|
190
|
+
//
|
|
191
|
+
// Close the first run's toast before clicking again: camunda-hub 6813a7e
|
|
192
|
+
// made the "Instance started!" toast persistent whenever it carries the
|
|
193
|
+
// Operate action, so its action button covers "Deploy & run" and would
|
|
194
|
+
// swallow the second click.
|
|
195
|
+
const instanceStartedToast = page
|
|
196
|
+
.locator('[data-sonner-toast]')
|
|
197
|
+
.filter({ has: modelerCreatePage.viewProcessInstanceLink });
|
|
198
|
+
await instanceStartedToast
|
|
199
|
+
.locator('[data-close-button="true"]')
|
|
200
|
+
.click({ timeout: 30000 });
|
|
201
|
+
await (0, test_1.expect)(modelerCreatePage.viewProcessInstanceLink).toBeHidden({
|
|
202
|
+
timeout: 30000,
|
|
203
|
+
});
|
|
185
204
|
await modelerCreatePage.runProcessInstance(alertFlowClusterName);
|
|
186
205
|
});
|
|
187
206
|
await _8_9_1.test.step('Navigate to Cluster Details', async () => {
|