@camunda/e2e-test-suite 0.0.525 → 0.0.527
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.
|
@@ -629,7 +629,11 @@ class ModelerCreatePage {
|
|
|
629
629
|
await this.continueToPlayButton.click({ timeout });
|
|
630
630
|
// Play environment provisioning involves Zeebe deploy + cluster
|
|
631
631
|
// bootstrap; on slower clusters this can take several minutes.
|
|
632
|
-
|
|
632
|
+
// On a second visit the env is already provisioned — Play loads
|
|
633
|
+
// directly without the toast, so accept either condition.
|
|
634
|
+
await (0, test_1.expect)(this.page
|
|
635
|
+
.getByText('Play environment is ready')
|
|
636
|
+
.or(this.page.getByTestId('undefined-Start instance'))).toBeVisible({ timeout: 180000 });
|
|
633
637
|
return; // Exit if successful
|
|
634
638
|
}
|
|
635
639
|
catch (error) {
|
|
@@ -111,14 +111,16 @@ class PlayPage {
|
|
|
111
111
|
'Start instance',
|
|
112
112
|
];
|
|
113
113
|
for (const buttonName of buttonVariations) {
|
|
114
|
-
const button = this.page
|
|
114
|
+
const button = this.page
|
|
115
|
+
.getByRole('dialog')
|
|
116
|
+
.getByRole('button', { name: buttonName });
|
|
115
117
|
const count = await button.count();
|
|
116
118
|
if (count > 0) {
|
|
117
119
|
await button.click();
|
|
118
120
|
return;
|
|
119
121
|
}
|
|
120
122
|
}
|
|
121
|
-
|
|
123
|
+
// No modal present — Play loaded directly without a start modal (env already provisioned)
|
|
122
124
|
}
|
|
123
125
|
async waitForInstanceDetailsToBeLoaded() {
|
|
124
126
|
const maxRetries = 3;
|
|
@@ -62,7 +62,7 @@ class OCIdentityHomePage {
|
|
|
62
62
|
await this.authorizationsTab.click();
|
|
63
63
|
}
|
|
64
64
|
async clickRolesTab() {
|
|
65
|
-
await (0,
|
|
65
|
+
await (0, expectLocatorWithRetry_1.expectLocatorWithRetry)(this.page, this.rolesTab);
|
|
66
66
|
await this.rolesTab.click();
|
|
67
67
|
}
|
|
68
68
|
async clickGroupsTab() {
|
|
@@ -4,6 +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 expectLocatorWithRetry_1 = require("../../utils/assertionHelpers/expectLocatorWithRetry");
|
|
7
8
|
class OCIdentityRolesPage {
|
|
8
9
|
page;
|
|
9
10
|
selectResourceTypeTab;
|
|
@@ -173,7 +174,10 @@ class OCIdentityRolesPage {
|
|
|
173
174
|
await this.assignUserSubButton.click();
|
|
174
175
|
}
|
|
175
176
|
async clickAdminRole() {
|
|
176
|
-
await (0,
|
|
177
|
+
await (0, expectLocatorWithRetry_1.expectLocatorWithRetry)(this.page, this.adminRole, {
|
|
178
|
+
visibilityTimeout: 30000,
|
|
179
|
+
totalTimeout: 120000,
|
|
180
|
+
});
|
|
177
181
|
await this.adminRole.click();
|
|
178
182
|
}
|
|
179
183
|
async clickClientsTab() {
|