@camunda/e2e-test-suite 0.0.527 → 0.0.529
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.
|
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.OCIdentityHomePage = void 0;
|
|
4
4
|
const test_1 = require("@playwright/test");
|
|
5
5
|
const expectLocatorWithRetry_1 = require("../../utils/assertionHelpers/expectLocatorWithRetry");
|
|
6
|
+
const clickLocatorWithRetry_1 = require("../../utils/assertionHelpers/clickLocatorWithRetry");
|
|
6
7
|
class OCIdentityHomePage {
|
|
7
8
|
page;
|
|
8
9
|
groupsTab;
|
|
@@ -62,8 +63,17 @@ class OCIdentityHomePage {
|
|
|
62
63
|
await this.authorizationsTab.click();
|
|
63
64
|
}
|
|
64
65
|
async clickRolesTab() {
|
|
65
|
-
|
|
66
|
-
|
|
66
|
+
// OC Identity occasionally renders the banner without the secondary nav
|
|
67
|
+
// tabs on opensearch upgrade scenarios. Reload between attempts to force
|
|
68
|
+
// the SPA to rehydrate the navigation instead of waiting on a stuck DOM.
|
|
69
|
+
await (0, clickLocatorWithRetry_1.clickLocatorWithRetry)(this.page, this.rolesTab, {
|
|
70
|
+
visibilityTimeout: 15000,
|
|
71
|
+
totalTimeout: 90000,
|
|
72
|
+
maxRetries: 4,
|
|
73
|
+
postAction: async () => {
|
|
74
|
+
await this.page.reload({ waitUntil: 'domcontentloaded' });
|
|
75
|
+
},
|
|
76
|
+
});
|
|
67
77
|
}
|
|
68
78
|
async clickGroupsTab() {
|
|
69
79
|
await (0, expectLocatorWithRetry_1.expectLocatorWithRetry)(this.page, this.groupsTab);
|
|
@@ -4,7 +4,7 @@ exports.OCIdentityRolesPage = void 0;
|
|
|
4
4
|
const test_1 = require("@playwright/test");
|
|
5
5
|
const UtilitiesPage_1 = require("../SM-8.8/UtilitiesPage");
|
|
6
6
|
const expectLocatorWithPagination_1 = require("../../utils/assertionHelpers/expectLocatorWithPagination");
|
|
7
|
-
const
|
|
7
|
+
const clickLocatorWithRetry_1 = require("../../utils/assertionHelpers/clickLocatorWithRetry");
|
|
8
8
|
class OCIdentityRolesPage {
|
|
9
9
|
page;
|
|
10
10
|
selectResourceTypeTab;
|
|
@@ -174,11 +174,17 @@ class OCIdentityRolesPage {
|
|
|
174
174
|
await this.assignUserSubButton.click();
|
|
175
175
|
}
|
|
176
176
|
async clickAdminRole() {
|
|
177
|
-
|
|
177
|
+
// The Roles list is occasionally empty on first render after the Roles
|
|
178
|
+
// tab loads (opensearch upgrade scenarios). Reload between attempts so
|
|
179
|
+
// the table refetches instead of waiting on a stale empty state.
|
|
180
|
+
await (0, clickLocatorWithRetry_1.clickLocatorWithRetry)(this.page, this.adminRole, {
|
|
178
181
|
visibilityTimeout: 30000,
|
|
179
182
|
totalTimeout: 120000,
|
|
183
|
+
maxRetries: 4,
|
|
184
|
+
postAction: async () => {
|
|
185
|
+
await this.page.reload({ waitUntil: 'domcontentloaded' });
|
|
186
|
+
},
|
|
180
187
|
});
|
|
181
|
-
await this.adminRole.click();
|
|
182
188
|
}
|
|
183
189
|
async clickClientsTab() {
|
|
184
190
|
await this.clientsTab.click();
|
|
@@ -660,7 +660,11 @@ class ModelerCreatePage {
|
|
|
660
660
|
await (0, sleep_1.sleep)(5000);
|
|
661
661
|
await marketplace.fillSearchForConnectorTextbox('REST Connector');
|
|
662
662
|
await marketplace.downloadConnectorToProject();
|
|
663
|
-
|
|
663
|
+
// Marketplace closes the change-type panel; reopen it so the
|
|
664
|
+
// newly installed connector appears before clicking.
|
|
665
|
+
await this.changeTypeButton.click({ force: true, timeout: 60000 });
|
|
666
|
+
await (0, test_1.expect)(this.restConnectorOption).toBeVisible({ timeout: 90000 });
|
|
667
|
+
await this.restConnectorOption.click({ timeout: 60000 });
|
|
664
668
|
}
|
|
665
669
|
return;
|
|
666
670
|
}
|
|
@@ -177,6 +177,9 @@ async function modelRestConnector(modelerCreatePage, connectorSettingsPage, conn
|
|
|
177
177
|
await connectorMarketplacePage.fillSearchForConnectorTextbox('REST Connector');
|
|
178
178
|
await (0, sleep_1.sleep)(10000);
|
|
179
179
|
await connectorMarketplacePage.downloadConnectorToProject();
|
|
180
|
+
// Marketplace closes the change-type panel; reopen it so the
|
|
181
|
+
// newly installed connector appears in the list.
|
|
182
|
+
await modelerCreatePage.clickChangeTypeButton();
|
|
180
183
|
}
|
|
181
184
|
await modelerCreatePage.clickRestConnectorOption();
|
|
182
185
|
await connectorSettingsPage.clickAuthenticationTab();
|