@camunda/e2e-test-suite 0.0.384 → 0.0.385
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.
|
@@ -17,7 +17,7 @@ class KeycloakAdminPage {
|
|
|
17
17
|
const realmSelector = this.page.getByTestId('nav-item-realms');
|
|
18
18
|
await realmSelector.click();
|
|
19
19
|
const searchField = this.page.getByTestId('selectRealminput');
|
|
20
|
-
await searchField.click();
|
|
20
|
+
await searchField.click({ timeout: 30000 });
|
|
21
21
|
await this.page
|
|
22
22
|
.getByPlaceholder('Search')
|
|
23
23
|
.fill(process.env.KEYCLOAK_REALM || 'camunda-platform');
|
|
@@ -857,11 +857,32 @@ class ModelerCreatePage {
|
|
|
857
857
|
const maxRetries = 4;
|
|
858
858
|
for (let retries = 0; retries < maxRetries; retries++) {
|
|
859
859
|
try {
|
|
860
|
+
if (retries === 0) {
|
|
861
|
+
// If the change type panel is not showing the connector (e.g. after
|
|
862
|
+
// visiting the marketplace), reopen it before waiting for the option.
|
|
863
|
+
const isAlreadyVisible = await this.intermediateWebhookConnectorOption.isVisible();
|
|
864
|
+
if (!isAlreadyVisible) {
|
|
865
|
+
await this.changeTypeButton.click({ force: true, timeout: 30000 });
|
|
866
|
+
}
|
|
867
|
+
}
|
|
868
|
+
else {
|
|
869
|
+
// Reload to pick up newly-downloaded connector templates, then
|
|
870
|
+
// re-select the intermediate event element and open the type picker.
|
|
871
|
+
await this.page.reload();
|
|
872
|
+
await this.secondElement.click({ force: true, timeout: 30000 });
|
|
873
|
+
await this.changeTypeButton.click({ force: true, timeout: 30000 });
|
|
874
|
+
}
|
|
875
|
+
// Use a longer timeout to allow the connector to finish registering
|
|
876
|
+
// after a marketplace download before giving up.
|
|
860
877
|
await (0, test_1.expect)(this.intermediateWebhookConnectorOption).toBeVisible({
|
|
861
|
-
timeout:
|
|
878
|
+
timeout: 60000,
|
|
862
879
|
});
|
|
863
880
|
await this.intermediateWebhookConnectorOption.scrollIntoViewIfNeeded();
|
|
864
|
-
|
|
881
|
+
// force: true bypasses context-pad overlays that can intercept clicks
|
|
882
|
+
await this.intermediateWebhookConnectorOption.click({
|
|
883
|
+
timeout: 60000,
|
|
884
|
+
force: true,
|
|
885
|
+
});
|
|
865
886
|
return;
|
|
866
887
|
}
|
|
867
888
|
catch (error) {
|
|
@@ -169,7 +169,7 @@ class OptimizeReportPage {
|
|
|
169
169
|
}
|
|
170
170
|
async waitUntilUserTaskProcessIsVisible(processName) {
|
|
171
171
|
await (0, test_1.expect)(this.page.getByText(processName, { exact: true })).toBeVisible({
|
|
172
|
-
timeout:
|
|
172
|
+
timeout: 30000,
|
|
173
173
|
});
|
|
174
174
|
}
|
|
175
175
|
async clickCancelButton() {
|
|
@@ -14,7 +14,13 @@ const createReportForProcess = async (optimizeCollectionsPage, optimizeReportPag
|
|
|
14
14
|
break;
|
|
15
15
|
}
|
|
16
16
|
catch (error) {
|
|
17
|
-
|
|
17
|
+
try {
|
|
18
|
+
await optimizeReportPage.clickCancelButton();
|
|
19
|
+
}
|
|
20
|
+
catch (cancelError) {
|
|
21
|
+
// Page may have been closed due to test timeout, ignore
|
|
22
|
+
}
|
|
23
|
+
await new Promise((resolve) => setTimeout(resolve, 5000));
|
|
18
24
|
}
|
|
19
25
|
retries--;
|
|
20
26
|
(0, test_1.expect)(retries).toBeGreaterThan(0);
|
|
@@ -145,7 +145,7 @@ SM_8_8_1.test.describe('HTO User Flow Tests', () => {
|
|
|
145
145
|
timeout: 90000,
|
|
146
146
|
});
|
|
147
147
|
await (0, test_1.expect)(page.getByText('"updatedValue"')).toBeVisible({
|
|
148
|
-
timeout:
|
|
148
|
+
timeout: 90000,
|
|
149
149
|
});
|
|
150
150
|
await (0, sleep_1.sleep)(10000);
|
|
151
151
|
await navigationPage.goToTasklist();
|