@camunda/e2e-test-suite 0.0.690 → 0.0.692
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.
|
@@ -881,7 +881,50 @@ class ModelerCreatePage {
|
|
|
881
881
|
await this.intermediateBoundaryEvent.click({ timeout: 60000 });
|
|
882
882
|
}
|
|
883
883
|
async clickIntermediateWebhookConnectorOption() {
|
|
884
|
-
|
|
884
|
+
const maxRetries = 4;
|
|
885
|
+
for (let retries = 0; retries < maxRetries; retries++) {
|
|
886
|
+
try {
|
|
887
|
+
if (retries === 0) {
|
|
888
|
+
// If the change type panel is not showing the connector (e.g. after
|
|
889
|
+
// visiting the marketplace), reopen it before waiting for the option.
|
|
890
|
+
const isAlreadyVisible = await this.intermediateWebhookConnectorOption.isVisible();
|
|
891
|
+
if (!isAlreadyVisible) {
|
|
892
|
+
await this.changeTypeButton.click({ force: true, timeout: 30000 });
|
|
893
|
+
}
|
|
894
|
+
}
|
|
895
|
+
else {
|
|
896
|
+
// Reload to pick up newly-downloaded connector templates, then
|
|
897
|
+
// re-select the intermediate event element and open the type picker.
|
|
898
|
+
await this.page.reload();
|
|
899
|
+
await this.page.waitForLoadState('domcontentloaded');
|
|
900
|
+
await this.secondElement.waitFor({
|
|
901
|
+
state: 'visible',
|
|
902
|
+
timeout: 30000,
|
|
903
|
+
});
|
|
904
|
+
await this.secondElement.click({ timeout: 30000 });
|
|
905
|
+
await this.changeTypeButton.click({ force: true, timeout: 30000 });
|
|
906
|
+
}
|
|
907
|
+
// Use a longer timeout to allow the connector to finish registering
|
|
908
|
+
// after a marketplace download before giving up.
|
|
909
|
+
await (0, test_1.expect)(this.intermediateWebhookConnectorOption).toBeVisible({
|
|
910
|
+
timeout: 60000,
|
|
911
|
+
});
|
|
912
|
+
await this.intermediateWebhookConnectorOption.scrollIntoViewIfNeeded();
|
|
913
|
+
// force: true bypasses context-pad overlays that can intercept clicks
|
|
914
|
+
await this.intermediateWebhookConnectorOption.click({
|
|
915
|
+
timeout: 60000,
|
|
916
|
+
force: true,
|
|
917
|
+
});
|
|
918
|
+
return;
|
|
919
|
+
}
|
|
920
|
+
catch (error) {
|
|
921
|
+
console.error(`Attempt ${retries + 1} failed to click intermediate webhook connector option: ${error}`);
|
|
922
|
+
if (retries < maxRetries - 1) {
|
|
923
|
+
await new Promise((resolve) => setTimeout(resolve, 5000));
|
|
924
|
+
}
|
|
925
|
+
}
|
|
926
|
+
}
|
|
927
|
+
throw new Error(`Failed to click intermediate webhook connector option after ${maxRetries} attempts.`);
|
|
885
928
|
}
|
|
886
929
|
async clickCorrelationKeyProcessInput() {
|
|
887
930
|
await this.correlationKeyProcessInput.click({ timeout: 60000 });
|
|
@@ -636,10 +636,7 @@ class ModelerCreatePage {
|
|
|
636
636
|
await this.changeTypeButton.click({ force: true, timeout: 60000 });
|
|
637
637
|
await this.clickMarketPlaceButton();
|
|
638
638
|
const marketplace = new ConnectorMarketplacePage_1.ConnectorMarketplacePage(this.page);
|
|
639
|
-
await marketplace.
|
|
640
|
-
await (0, sleep_1.sleep)(5000);
|
|
641
|
-
await marketplace.fillSearchForConnectorTextbox('REST Connector');
|
|
642
|
-
await marketplace.downloadConnectorToProject();
|
|
639
|
+
await marketplace.searchAndDownloadConnector('REST Connector');
|
|
643
640
|
// Marketplace closes the change-type panel; reopen it so the
|
|
644
641
|
// newly installed connector appears in the list.
|
|
645
642
|
await this.changeTypeButton.click({ force: true, timeout: 60000 });
|
|
@@ -337,13 +337,7 @@ async function modelAndRunConnectorsTimerEventDiagram(modelerCreatePage, modeler
|
|
|
337
337
|
timeout: 120000,
|
|
338
338
|
});
|
|
339
339
|
await modelerCreatePage.clickMarketPlaceButton();
|
|
340
|
-
await connectorMarketplacePage.
|
|
341
|
-
await connectorMarketplacePage.fillSearchForConnectorTextbox('REST Connector');
|
|
342
|
-
await (0, sleep_1.sleep)(10000);
|
|
343
|
-
await (0, test_1.expect)(page.getByText('REST ConnectorBy CamundaConnect, interact, and synchronize processes')).toBeVisible({
|
|
344
|
-
timeout: 60000,
|
|
345
|
-
});
|
|
346
|
-
await connectorMarketplacePage.downloadConnectorToProject();
|
|
340
|
+
await connectorMarketplacePage.searchAndDownloadConnector('REST Connector');
|
|
347
341
|
await modelerHomePage.clickProjectBreadcrumb();
|
|
348
342
|
await modelerHomePage.clickProcessDiagram('REST Outbound Connector');
|
|
349
343
|
await connectorTemplatePage.publishConnector();
|
|
@@ -452,9 +446,7 @@ async function modelAndRunConnectorsDocHandlingDiagram(modelerCreatePage, modele
|
|
|
452
446
|
await modelerCreatePage.clickFirstPlaceRESTConnector();
|
|
453
447
|
await modelerCreatePage.clickChangeTypeButton();
|
|
454
448
|
await modelerCreatePage.clickMarketPlaceButton();
|
|
455
|
-
await connectorMarketplacePage.
|
|
456
|
-
await connectorMarketplacePage.fillSearchForConnectorTextbox('REST Connector');
|
|
457
|
-
await connectorMarketplacePage.downloadConnectorToProject();
|
|
449
|
+
await connectorMarketplacePage.searchAndDownloadConnector('REST Connector');
|
|
458
450
|
await page.reload();
|
|
459
451
|
await page.waitForLoadState('networkidle');
|
|
460
452
|
await modelerCreatePage.fillStartEventVariablesForDocHandling(zeebeUrl, zeebeClientId, zeebeClientSecret);
|