@camunda/e2e-test-suite 0.0.1654 → 0.0.1655
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.
|
@@ -104,13 +104,24 @@ class OCIdentityGroupsPage {
|
|
|
104
104
|
}
|
|
105
105
|
async createGroup(groupId, groupName, description) {
|
|
106
106
|
await this.createGroupButton.click();
|
|
107
|
-
await this.
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
107
|
+
await (0, test_1.expect)(this.createGroupModal).toBeVisible();
|
|
108
|
+
// The modal can reset its form right after opening, wiping values that
|
|
109
|
+
// were filled too early. Re-fill until the values stick before submitting.
|
|
110
|
+
await (0, test_1.expect)(async () => {
|
|
111
|
+
await this.createGroupIdField.fill(groupId);
|
|
112
|
+
await this.createNameField.fill(groupName);
|
|
113
|
+
if (description) {
|
|
114
|
+
await this.createDescriptionField.fill(description);
|
|
115
|
+
}
|
|
116
|
+
await (0, test_1.expect)(this.createGroupIdField).toHaveValue(groupId, {
|
|
117
|
+
timeout: 2000,
|
|
118
|
+
});
|
|
119
|
+
await (0, test_1.expect)(this.createNameField).toHaveValue(groupName, {
|
|
120
|
+
timeout: 2000,
|
|
121
|
+
});
|
|
122
|
+
}).toPass({ timeout: 30000 });
|
|
112
123
|
await this.createGroupModalCreateButton.click();
|
|
113
|
-
await (0, test_1.expect)(this.createGroupModal).toBeHidden();
|
|
124
|
+
await (0, test_1.expect)(this.createGroupModal).toBeHidden({ timeout: 30000 });
|
|
114
125
|
}
|
|
115
126
|
async editGroup(currentName, newName, newDescription) {
|
|
116
127
|
await this.editGroupButton(currentName).click();
|
|
@@ -234,8 +234,15 @@ SM_8_9_1.test.describe('HTO User Flow Tests', () => {
|
|
|
234
234
|
});
|
|
235
235
|
await SM_8_9_1.test.step('Navigate to Tasklist and Assert User Tasks ', async () => {
|
|
236
236
|
await navigationPage.goToTasklist(undefined, credentials1);
|
|
237
|
-
|
|
238
|
-
|
|
237
|
+
// Tasklist reloads itself after a post-login 401 and can stay blank;
|
|
238
|
+
// reload until the task list has rendered.
|
|
239
|
+
await (0, expectLocatorWithRetry_1.expectLocatorWithRetry)(page, page.getByText(`${userTaskName}1`), {
|
|
240
|
+
totalTimeout: 180000,
|
|
241
|
+
visibilityTimeout: 30000,
|
|
242
|
+
maxRetries: 6,
|
|
243
|
+
postAction: async () => {
|
|
244
|
+
await page.reload();
|
|
245
|
+
},
|
|
239
246
|
});
|
|
240
247
|
await (0, test_1.expect)(page.getByText(`${userTaskName}2`)).toBeVisible({
|
|
241
248
|
timeout: 120000,
|
|
@@ -247,10 +254,18 @@ SM_8_9_1.test.describe('HTO User Flow Tests', () => {
|
|
|
247
254
|
});
|
|
248
255
|
await SM_8_9_1.test.step('Navigate to Tasklist and Assert User Tasks ', async () => {
|
|
249
256
|
await navigationPage.goToTasklist(undefined, credentials2);
|
|
250
|
-
|
|
251
|
-
|
|
257
|
+
// Wait for the task list to render (reloading a blank page after the
|
|
258
|
+
// post-login 401) before asserting the task that must NOT be visible,
|
|
259
|
+
// otherwise that check passes vacuously on an empty page.
|
|
260
|
+
await (0, expectLocatorWithRetry_1.expectLocatorWithRetry)(page, page.getByText(`${userTaskName}2`), {
|
|
261
|
+
totalTimeout: 180000,
|
|
262
|
+
visibilityTimeout: 30000,
|
|
263
|
+
maxRetries: 6,
|
|
264
|
+
postAction: async () => {
|
|
265
|
+
await page.reload();
|
|
266
|
+
},
|
|
252
267
|
});
|
|
253
|
-
await (0, test_1.expect)(page.getByText(`${userTaskName}
|
|
268
|
+
await (0, test_1.expect)(page.getByText(`${userTaskName}1`)).not.toBeVisible({
|
|
254
269
|
timeout: 120000,
|
|
255
270
|
});
|
|
256
271
|
});
|