@camunda/e2e-test-suite 0.0.947 → 0.0.948
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.
|
@@ -40,7 +40,9 @@ class OptimizeReportPage {
|
|
|
40
40
|
name: 'Process Instance',
|
|
41
41
|
exact: true,
|
|
42
42
|
});
|
|
43
|
-
this.userTaskOption = page.
|
|
43
|
+
this.userTaskOption = page.getByRole('menuitemcheckbox', {
|
|
44
|
+
name: 'User task',
|
|
45
|
+
});
|
|
44
46
|
this.heatMapButton = page.getByRole('button', { name: 'Heatmap' });
|
|
45
47
|
this.numberButton = page.getByRole('button', { name: 'Number' });
|
|
46
48
|
this.tableOption = page.getByText('Table');
|
|
@@ -96,7 +98,20 @@ class OptimizeReportPage {
|
|
|
96
98
|
await this.processInstanceButton.click();
|
|
97
99
|
}
|
|
98
100
|
async clickUserTaskOption() {
|
|
99
|
-
|
|
101
|
+
for (let attempt = 1; attempt <= 3; attempt++) {
|
|
102
|
+
try {
|
|
103
|
+
await this.userTaskOption.click();
|
|
104
|
+
return; // success
|
|
105
|
+
}
|
|
106
|
+
catch (error) {
|
|
107
|
+
if (attempt < 3) {
|
|
108
|
+
await this.clickSelectDropdown();
|
|
109
|
+
}
|
|
110
|
+
else {
|
|
111
|
+
throw new Error(`clickUserTaskOption failed after 3 attempts: ${error}`);
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
}
|
|
100
115
|
}
|
|
101
116
|
async clickHeatMapButton() {
|
|
102
117
|
if (await this.heatMapButton.isVisible()) {
|
|
@@ -167,6 +182,7 @@ class OptimizeReportPage {
|
|
|
167
182
|
}
|
|
168
183
|
async clickSelectDropdown() {
|
|
169
184
|
await this.selectDropdown.click();
|
|
185
|
+
await (0, sleep_1.sleep)(10000);
|
|
170
186
|
}
|
|
171
187
|
}
|
|
172
188
|
exports.OptimizeReportPage = OptimizeReportPage;
|