@camunda/e2e-test-suite 0.0.410 → 0.0.411
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.
|
@@ -85,14 +85,18 @@ async function completeTaskWithRetry(page, taskPanelPage, taskDetailsPage, taskN
|
|
|
85
85
|
try {
|
|
86
86
|
await page.waitForLoadState('networkidle');
|
|
87
87
|
await (0, sleep_1.sleep)(500);
|
|
88
|
-
const
|
|
88
|
+
const taskLocator = taskPanelPage.availableTasks
|
|
89
89
|
.getByText(taskName, { exact: true })
|
|
90
|
-
.first()
|
|
91
|
-
|
|
92
|
-
|
|
90
|
+
.first();
|
|
91
|
+
try {
|
|
92
|
+
await taskLocator.waitFor({ state: 'visible', timeout: 10000 });
|
|
93
|
+
}
|
|
94
|
+
catch {
|
|
93
95
|
throw new Error(`Task ${taskName} not found in available tasks`);
|
|
94
96
|
}
|
|
95
|
-
|
|
97
|
+
// Click the task directly instead of using openTask's 30-retry loop
|
|
98
|
+
// (this outer loop already provides retry logic)
|
|
99
|
+
await taskLocator.click({ timeout: 10000 });
|
|
96
100
|
await (0, sleep_1.sleep)(1000);
|
|
97
101
|
await (0, test_1.expect)(taskDetailsPage.detailsPanel).toBeVisible({ timeout: 30000 });
|
|
98
102
|
// Verify the correct task is loaded by checking the task name appears
|
|
@@ -103,7 +107,10 @@ async function completeTaskWithRetry(page, taskPanelPage, taskDetailsPage, taskN
|
|
|
103
107
|
await taskDetailsPage.clickAssignToMeButton();
|
|
104
108
|
}
|
|
105
109
|
await (0, test_1.expect)(taskDetailsPage.detailsPanel.getByText(taskPriority)).toBeVisible({ timeout: 30000 });
|
|
106
|
-
await taskDetailsPage.
|
|
110
|
+
await taskDetailsPage.completeTaskButton.click({ timeout: 30000 });
|
|
111
|
+
await (0, test_1.expect)(taskDetailsPage.taskCompletedBanner).toBeVisible({
|
|
112
|
+
timeout: 60000,
|
|
113
|
+
});
|
|
107
114
|
await (0, test_1.expect)(taskPanelPage.availableTasks.getByText(taskName, { exact: true }).first()).not.toBeVisible({ timeout: 60000 });
|
|
108
115
|
console.log(`Successfully completed task: ${taskName}`);
|
|
109
116
|
return;
|
|
@@ -90,13 +90,14 @@ SM_8_10_1.test.describe('HTO User Flow Tests', () => {
|
|
|
90
90
|
timeout: 45000,
|
|
91
91
|
});
|
|
92
92
|
await page.reload();
|
|
93
|
+
await page.waitForLoadState('networkidle');
|
|
93
94
|
await taskPanelPage.openTask(`${taskName}4`, false);
|
|
94
95
|
await (0, test_1.expect)(page.getByText(processName).first()).toBeVisible({
|
|
95
96
|
timeout: 60000,
|
|
96
97
|
});
|
|
97
98
|
await taskDetailsPage.taskAssertion(processName);
|
|
98
99
|
await taskDetailsPage.priorityAssertion('critical');
|
|
99
|
-
await (0, sleep_1.sleep)(
|
|
100
|
+
await (0, sleep_1.sleep)(3000);
|
|
100
101
|
await navigationPage.goToOperate();
|
|
101
102
|
await operateHomePage.clickProcessesTab();
|
|
102
103
|
await operateProcessesPage.clickProcessInstanceLink(processName, 'completed');
|