@camunda/e2e-test-suite 0.0.803 → 0.0.805
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.
|
@@ -146,10 +146,8 @@ class ConsoleOrganizationPage {
|
|
|
146
146
|
});
|
|
147
147
|
this.deleteButton = page.getByRole('button', { name: 'delete' });
|
|
148
148
|
this.deleteSubButton = page
|
|
149
|
-
.getByRole('
|
|
150
|
-
name: '
|
|
151
|
-
})
|
|
152
|
-
.last();
|
|
149
|
+
.getByRole('dialog')
|
|
150
|
+
.getByRole('button', { name: 'delete' });
|
|
153
151
|
this.filterTableSearchbox = page.getByRole('searchbox', {
|
|
154
152
|
name: 'Filter table',
|
|
155
153
|
});
|
|
@@ -511,20 +509,13 @@ class ConsoleOrganizationPage {
|
|
|
511
509
|
await this.organizationManagementLink.click();
|
|
512
510
|
}
|
|
513
511
|
async deleteAllGroups() {
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
await this.deleteButton.nth(i).click({ timeout: 60000 });
|
|
522
|
-
await this.deleteSubButton.click({ timeout: 60000 });
|
|
523
|
-
}
|
|
524
|
-
}
|
|
525
|
-
}
|
|
526
|
-
catch (error) {
|
|
527
|
-
console.log('Delete Button Not Clicked ' + error);
|
|
512
|
+
// Delete groups one at a time: each confirmed deletion re-renders and
|
|
513
|
+
// re-indexes the list, so always operate on the first remaining row
|
|
514
|
+
// instead of iterating by index over a mutating collection.
|
|
515
|
+
while ((await this.deleteButton.count()) > 0) {
|
|
516
|
+
await this.deleteButton.first().click({ timeout: 60000 });
|
|
517
|
+
await this.deleteSubButton.click({ timeout: 60000 });
|
|
518
|
+
await (0, test_1.expect)(this.deleteSubButton).not.toBeVisible({ timeout: 60000 });
|
|
528
519
|
}
|
|
529
520
|
}
|
|
530
521
|
}
|
|
@@ -656,7 +656,10 @@ class ModelerCreatePage {
|
|
|
656
656
|
await this.createEndEvent.click({ timeout: 60000 });
|
|
657
657
|
}
|
|
658
658
|
async clickCanvas() {
|
|
659
|
-
await this.
|
|
659
|
+
await this.endEventCanvas.click({
|
|
660
|
+
timeout: 60000,
|
|
661
|
+
position: { x: 150, y: 20 },
|
|
662
|
+
});
|
|
660
663
|
}
|
|
661
664
|
async clickEndEventCanvas() {
|
|
662
665
|
await this.endEventCanvas.click({ timeout: 60000 });
|
|
@@ -10,6 +10,7 @@ declare class TaskPanelPage {
|
|
|
10
10
|
openTask(name: string): Promise<void>;
|
|
11
11
|
filterBy(option: 'All open' | 'Unassigned' | 'Assigned to me' | 'Completed'): Promise<void>;
|
|
12
12
|
taskCount(name: string): Promise<number>;
|
|
13
|
+
expectTaskCount(name: string, expectedCount: number): Promise<void>;
|
|
13
14
|
clickTasksTab(): Promise<void>;
|
|
14
15
|
scrollToLastTask(name: string): Promise<void>;
|
|
15
16
|
scrollToFirstTask(name: string): Promise<void>;
|
|
@@ -53,6 +53,17 @@ class TaskPanelPage {
|
|
|
53
53
|
await (0, sleep_1.sleep)(20000);
|
|
54
54
|
return this.availableTasks.getByText(name, { exact: true }).count();
|
|
55
55
|
}
|
|
56
|
+
async expectTaskCount(name, expectedCount) {
|
|
57
|
+
await (0, test_1.expect)(async () => {
|
|
58
|
+
const count = await this.availableTasks
|
|
59
|
+
.getByText(name, { exact: true })
|
|
60
|
+
.count();
|
|
61
|
+
(0, test_1.expect)(count).toBe(expectedCount);
|
|
62
|
+
}).toPass({
|
|
63
|
+
intervals: [5000, 10000, 15000, 20000],
|
|
64
|
+
timeout: 180000,
|
|
65
|
+
});
|
|
66
|
+
}
|
|
56
67
|
async clickTasksTab() {
|
|
57
68
|
await this.tasksTab.click();
|
|
58
69
|
}
|
|
@@ -307,13 +307,11 @@ _8_7_1.test.describe('RBA Enabled User Flows Test', () => {
|
|
|
307
307
|
//Start first process
|
|
308
308
|
await taskPanelPage.clickProcessesTab();
|
|
309
309
|
await taskProcessesPage.startProcess(processName1);
|
|
310
|
-
|
|
311
|
-
(0, test_1.expect)(updatedFirstProcessTaskCount).toBe(firstProcessTaskCount + 1);
|
|
310
|
+
await taskPanelPage.expectTaskCount(processName1, firstProcessTaskCount + 1);
|
|
312
311
|
//Start second process
|
|
313
312
|
await taskPanelPage.clickProcessesTab();
|
|
314
313
|
await taskProcessesPage.startProcess(processName2);
|
|
315
|
-
|
|
316
|
-
(0, test_1.expect)(updatedSecondProcessTaskCount).toBe(secondProcessTaskCount + 1);
|
|
314
|
+
await taskPanelPage.expectTaskCount(processName2, secondProcessTaskCount + 1);
|
|
317
315
|
});
|
|
318
316
|
await _8_7_1.test.step('Navigate to Operate and Assert Both Processes Are Accessible', async () => {
|
|
319
317
|
await appsPage.clickCamundaApps();
|