@camunda/e2e-test-suite 0.0.409 → 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;
|
|
@@ -872,7 +872,12 @@ class ModelerCreatePage {
|
|
|
872
872
|
// Reload to pick up newly-downloaded connector templates, then
|
|
873
873
|
// re-select the intermediate event element and open the type picker.
|
|
874
874
|
await this.page.reload();
|
|
875
|
-
await this.
|
|
875
|
+
await this.page.waitForLoadState('domcontentloaded');
|
|
876
|
+
await this.secondElement.waitFor({
|
|
877
|
+
state: 'visible',
|
|
878
|
+
timeout: 30000,
|
|
879
|
+
});
|
|
880
|
+
await this.secondElement.click({ timeout: 30000 });
|
|
876
881
|
await this.changeTypeButton.click({ force: true, timeout: 30000 });
|
|
877
882
|
}
|
|
878
883
|
// Use a longer timeout to allow the connector to finish registering
|
|
@@ -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');
|
|
@@ -187,7 +187,7 @@ SM_8_8_1.test.describe('Connectors User Flow Tests @tasklistV2', () => {
|
|
|
187
187
|
await modelerCreatePage.clickIntermediateBoundaryEvent();
|
|
188
188
|
await modelerCreatePage.clickChangeTypeButton();
|
|
189
189
|
try {
|
|
190
|
-
await (0, test_1.expect)(modelerCreatePage.
|
|
190
|
+
await (0, test_1.expect)(modelerCreatePage.intermediateWebhookConnectorOption).toBeVisible({
|
|
191
191
|
timeout: 15000,
|
|
192
192
|
});
|
|
193
193
|
}
|