@camunda/e2e-test-suite 0.0.1512 → 0.0.1513
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.
|
@@ -200,6 +200,7 @@ declare class ModelerCreatePage {
|
|
|
200
200
|
expandAssignmentSection(): Promise<void>;
|
|
201
201
|
clickAppendElementButton(): Promise<void>;
|
|
202
202
|
clickParallelGatewayOption(): Promise<void>;
|
|
203
|
+
private ensureGatewayAppended;
|
|
203
204
|
private gatewayShapeIds;
|
|
204
205
|
private selectReplacedGateway;
|
|
205
206
|
private pinAppendedGateway;
|
|
@@ -1683,6 +1683,34 @@ class ModelerCreatePage {
|
|
|
1683
1683
|
}
|
|
1684
1684
|
throw new Error(`Failed to replace the element with a parallel gateway after ${maxRetries} attempts: ${lastError}`);
|
|
1685
1685
|
}
|
|
1686
|
+
// A save conflict force-refreshes the diagram, which drops the gateway just
|
|
1687
|
+
// appended and leaves the start event selected, so the replace popup offers
|
|
1688
|
+
// start-event entries only. Reload onto the saved diagram and append again.
|
|
1689
|
+
async ensureGatewayAppended() {
|
|
1690
|
+
const selectedGateway = this.page
|
|
1691
|
+
.locator('.djs-element.selected[data-element-id*="Gateway"]')
|
|
1692
|
+
.first();
|
|
1693
|
+
if (await this.isVisibleWithin(selectedGateway, 10000)) {
|
|
1694
|
+
return;
|
|
1695
|
+
}
|
|
1696
|
+
await this.waitForFileSavesToSettle();
|
|
1697
|
+
await this.page.reload();
|
|
1698
|
+
await (0, sleep_1.sleep)(10000);
|
|
1699
|
+
// The append may have been saved with only the selection lost; select
|
|
1700
|
+
// that gateway rather than appending a second one from the start event.
|
|
1701
|
+
const savedGateway = this.page
|
|
1702
|
+
.locator('.djs-element[data-element-id*="Gateway"]')
|
|
1703
|
+
.first();
|
|
1704
|
+
if (await this.isVisibleWithin(savedGateway, 5000)) {
|
|
1705
|
+
await savedGateway.click({ force: true, timeout: 30000 });
|
|
1706
|
+
}
|
|
1707
|
+
else {
|
|
1708
|
+
await this.clickFirstPlacedElement();
|
|
1709
|
+
await this.clickAppendElementButton();
|
|
1710
|
+
await this.clickAppendGatewayButton();
|
|
1711
|
+
}
|
|
1712
|
+
await (0, test_1.expect)(selectedGateway).toBeVisible({ timeout: 30000 });
|
|
1713
|
+
}
|
|
1686
1714
|
async gatewayShapeIds() {
|
|
1687
1715
|
const ids = await this.page
|
|
1688
1716
|
.locator('.djs-shape[data-element-id^="Gateway_"]')
|
|
@@ -1832,6 +1860,7 @@ class ModelerCreatePage {
|
|
|
1832
1860
|
await this.hoverOnLocator(this.appendElementButton);
|
|
1833
1861
|
}
|
|
1834
1862
|
await this.clickAppendGatewayButton();
|
|
1863
|
+
await this.ensureGatewayAppended();
|
|
1835
1864
|
await this.clickParallelGatewayOption();
|
|
1836
1865
|
await this.clickAppendElementButton();
|
|
1837
1866
|
await this.clickAppendTaskButton();
|