@camunda/e2e-test-suite 0.0.1654 → 0.0.1656
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();
|
|
@@ -204,19 +204,32 @@ async function uploadRestConnectorTemplate(page, modelerHomePage) {
|
|
|
204
204
|
// The project list is paginated, so a template uploaded by an earlier run can
|
|
205
205
|
// sit past the first page. Filter the whole project instead of counting rows.
|
|
206
206
|
const filterInput = page.getByPlaceholder('Filter table');
|
|
207
|
-
await filterInput.fill(REST_CONNECTOR_TEMPLATE_RESOURCE);
|
|
208
207
|
const templateRow = modelerHomePage.rows.filter({
|
|
209
208
|
hasText: REST_CONNECTOR_TEMPLATE_RESOURCE,
|
|
210
209
|
});
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
210
|
+
// Web Modeler renders the table toolbar (and its "Filter table" search box)
|
|
211
|
+
// only when the project has at least one file. A freshly created project
|
|
212
|
+
// shows the project empty state instead, so there is nothing to filter and
|
|
213
|
+
// the template cannot already be there. This is the *project* empty state
|
|
214
|
+
// (camunda-hub self-managed/8.9: App/Pages/Project/EmptyStateBase.jsx), not
|
|
215
|
+
// the folder one ("This folder doesn't have any content yet."), which only
|
|
216
|
+
// renders inside a sub-folder.
|
|
217
|
+
const emptyProject = page.getByText('It all starts with a process application');
|
|
218
|
+
await (0, test_1.expect)(filterInput.or(emptyProject).first()).toBeVisible({
|
|
219
|
+
timeout: 60000,
|
|
220
|
+
});
|
|
221
|
+
if (await filterInput.isVisible()) {
|
|
222
|
+
await filterInput.fill(REST_CONNECTOR_TEMPLATE_RESOURCE);
|
|
223
|
+
const alreadyUploaded = await templateRow
|
|
224
|
+
.first()
|
|
225
|
+
.waitFor({ state: 'visible', timeout: 15000 })
|
|
226
|
+
.then(() => true)
|
|
227
|
+
.catch(() => false);
|
|
228
|
+
if (alreadyUploaded) {
|
|
229
|
+
return;
|
|
230
|
+
}
|
|
231
|
+
await filterInput.fill('');
|
|
218
232
|
}
|
|
219
|
-
await filterInput.fill('');
|
|
220
233
|
const buffer = await fetchRestConnectorTemplateV13(page);
|
|
221
234
|
await modelerHomePage.clickDiagramTypeDropdown();
|
|
222
235
|
await modelerHomePage.clickUploadFilesButton();
|
|
@@ -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
|
});
|