@camunda/e2e-test-suite 0.0.651 → 0.0.652
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.
|
@@ -28,6 +28,7 @@ declare class ModelerCreatePage {
|
|
|
28
28
|
readonly deploySubButton: Locator;
|
|
29
29
|
readonly cancelButton: Locator;
|
|
30
30
|
readonly restConnectorOption: Locator;
|
|
31
|
+
readonly changeElementSearchInput: Locator;
|
|
31
32
|
readonly marketPlaceButton: Locator;
|
|
32
33
|
readonly clientIdTextbox: Locator;
|
|
33
34
|
readonly clientSecretTextbox: Locator;
|
|
@@ -33,6 +33,7 @@ class ModelerCreatePage {
|
|
|
33
33
|
deploySubButton;
|
|
34
34
|
cancelButton;
|
|
35
35
|
restConnectorOption;
|
|
36
|
+
changeElementSearchInput;
|
|
36
37
|
marketPlaceButton;
|
|
37
38
|
clientIdTextbox;
|
|
38
39
|
clientSecretTextbox;
|
|
@@ -147,6 +148,7 @@ class ModelerCreatePage {
|
|
|
147
148
|
this.restConnectorOption = page.getByRole('listitem', {
|
|
148
149
|
name: 'REST Outbound Connector',
|
|
149
150
|
});
|
|
151
|
+
this.changeElementSearchInput = page.locator('.djs-popup-search input');
|
|
150
152
|
this.marketPlaceButton = page.getByTitle('Browse Marketplace for more Connectors');
|
|
151
153
|
this.clientIdTextbox = page.getByLabel('Client ID');
|
|
152
154
|
this.clientSecretTextbox = page.getByLabel('Client secret');
|
|
@@ -601,6 +603,14 @@ class ModelerCreatePage {
|
|
|
601
603
|
await this.cancelButton.click();
|
|
602
604
|
}
|
|
603
605
|
async searchAndClickRestConnector() {
|
|
606
|
+
// The change-element popup virtualizes its list: connector templates
|
|
607
|
+
// render below the built-in BPMN tasks and are not in the queryable DOM
|
|
608
|
+
// slice until the list is filtered. Type into the popup search box (the
|
|
609
|
+
// same `.djs-popup-search input` selector the bpmn-js/hub e2e tests use)
|
|
610
|
+
// so the REST Outbound Connector entry is rendered before asserting on it.
|
|
611
|
+
if (await this.changeElementSearchInput.isVisible()) {
|
|
612
|
+
await this.changeElementSearchInput.fill('REST Outbound');
|
|
613
|
+
}
|
|
604
614
|
await (0, test_1.expect)(this.restConnectorOption).toBeVisible({ timeout: 90000 });
|
|
605
615
|
await this.restConnectorOption.click({ timeout: 90000 });
|
|
606
616
|
}
|