@camunda/e2e-test-suite 0.0.713 → 0.0.714
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.
|
@@ -86,8 +86,11 @@ class ClusterDetailsPage {
|
|
|
86
86
|
this.rbaDisableButton = page.getByRole('button', { name: 'Disable' });
|
|
87
87
|
this.dialog = page.getByRole('dialog');
|
|
88
88
|
this.deleteButton = page.getByRole('button', { name: 'Delete' });
|
|
89
|
-
|
|
90
|
-
|
|
89
|
+
// Scoped to the confirmation dialog and matched on "Delete" so it works
|
|
90
|
+
// both before and after Carbon dropped the "danger" assistive-text prefix
|
|
91
|
+
// from cds--btn--danger (the old accessible name was "danger Delete").
|
|
92
|
+
this.deleteSubButton = this.dialog.getByRole('button', {
|
|
93
|
+
name: 'Delete',
|
|
91
94
|
});
|
|
92
95
|
this.createClientCredentialsDialog = page.getByRole('dialog', {
|
|
93
96
|
name: 'Create new client credentials',
|
|
@@ -187,10 +187,9 @@ class ModelerCreatePage {
|
|
|
187
187
|
this.secondPlacedElement = page.locator('g:nth-child(2) > .djs-element > .djs-hit');
|
|
188
188
|
this.payloadInput = page.locator('[class="fjs-input"]');
|
|
189
189
|
this.marketPlaceButton = page.getByTitle('Browse Marketplace for more Connectors');
|
|
190
|
-
this.publicHolidayConnectorOption = page
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
});
|
|
190
|
+
this.publicHolidayConnectorOption = page
|
|
191
|
+
.locator('[data-test="modeler"]')
|
|
192
|
+
.getByText('Worldwide Public Holiday');
|
|
194
193
|
this.publicHolidayYearOption = page.getByLabel('Year');
|
|
195
194
|
this.publicHolidayCountryCodeOption = page.getByLabel('Countrycode');
|
|
196
195
|
this.implementationSection = page.locator('[data-group-id="group-userTaskImplementation"]');
|
|
@@ -786,21 +785,21 @@ class ModelerCreatePage {
|
|
|
786
785
|
await this.clickMarketPlaceButton();
|
|
787
786
|
const connectorMarketplacePage = new ConnectorMarketplacePage_1.ConnectorMarketplacePage(this.page);
|
|
788
787
|
await connectorMarketplacePage.clickSearchForConnectorTextbox();
|
|
789
|
-
await connectorMarketplacePage.fillSearchForConnectorTextbox('Public Holiday
|
|
788
|
+
await connectorMarketplacePage.fillSearchForConnectorTextbox('Worldwide Public Holiday');
|
|
790
789
|
await (0, sleep_1.sleep)(10000);
|
|
791
790
|
await connectorMarketplacePage.downloadConnectorToProject();
|
|
792
|
-
await this.clickCanvas();
|
|
793
|
-
await this.secondElement.click({ timeout: 60000 });
|
|
794
|
-
await this.clickChangeTypeButton();
|
|
795
791
|
}
|
|
792
|
+
// Always open the change-type popup before trying to click the option
|
|
793
|
+
await this.clickCanvas();
|
|
794
|
+
await this.secondElement.click({ timeout: 60000 });
|
|
795
|
+
await this.clickChangeTypeButton();
|
|
796
|
+
await (0, test_1.expect)(this.marketPlaceButton).toBeVisible({ timeout: 60000 });
|
|
796
797
|
// Filter the virtualized change-element popup so the option scrolls into view
|
|
797
798
|
const changeElementSearch = this.page.locator('.djs-popup-search input');
|
|
798
799
|
if (await changeElementSearch
|
|
799
800
|
.isVisible({ timeout: 5000 })
|
|
800
801
|
.catch(() => false)) {
|
|
801
|
-
await changeElementSearch.pressSequentially('Worldwide Public Holiday', {
|
|
802
|
-
delay: 50,
|
|
803
|
-
});
|
|
802
|
+
await changeElementSearch.pressSequentially('Worldwide Public Holiday', { delay: 50 });
|
|
804
803
|
}
|
|
805
804
|
await this.publicHolidayConnectorOption.waitFor({
|
|
806
805
|
state: 'visible',
|
|
@@ -815,9 +814,6 @@ class ModelerCreatePage {
|
|
|
815
814
|
break;
|
|
816
815
|
await this.page.reload();
|
|
817
816
|
await new Promise((resolve) => setTimeout(resolve, 10000));
|
|
818
|
-
await this.clickCanvas();
|
|
819
|
-
await this.secondElement.click({ timeout: 60000 });
|
|
820
|
-
await this.clickChangeTypeButton();
|
|
821
817
|
}
|
|
822
818
|
}
|
|
823
819
|
throw new Error(`Failed to click the button after ${maxRetries} attempts.`);
|