@camunda/e2e-test-suite 0.0.898 → 0.0.899
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.
|
@@ -127,7 +127,11 @@ class ModelerCreatePage {
|
|
|
127
127
|
// ambiguous whenever a diagram name contains it (e.g. "Optimize Job Worker
|
|
128
128
|
// User Task Diagram"). Target the built-in entry by its stable data-id.
|
|
129
129
|
this.userTaskOption = page.locator('.djs-popup-results [data-id="replace-with-user-task"]');
|
|
130
|
-
|
|
130
|
+
// The user-task priority field renders as `<input type="number">`, whose
|
|
131
|
+
// ARIA role is `spinbutton`, not `textbox`. Its id is also what separates it
|
|
132
|
+
// from the "Job priority" group's `jobPriorityDefinitionPriority` field,
|
|
133
|
+
// which any name-based query matches as well.
|
|
134
|
+
this.priorityInput = page.locator('#bio-properties-panel-priorityDefinitionPriority');
|
|
131
135
|
this.appendEndEventButton = page.getByRole('button', {
|
|
132
136
|
name: 'Append end event',
|
|
133
137
|
});
|
|
@@ -504,11 +508,17 @@ class ModelerCreatePage {
|
|
|
504
508
|
await this.page.waitForTimeout(1000);
|
|
505
509
|
}
|
|
506
510
|
async clickPriorityInput() {
|
|
511
|
+
// `.bio-properties-panel-group-header empty open` is a descendant
|
|
512
|
+
// combinator over non-existent `empty`/`open` element types, so it always
|
|
513
|
+
// counted 0 and every call clicked the group container blindly — toggling
|
|
514
|
+
// the section shut again on the second and later user tasks.
|
|
507
515
|
const isExpanded = (await this.assignmentSection
|
|
508
|
-
.locator('.bio-properties-panel-group-header
|
|
516
|
+
.locator('.bio-properties-panel-group-header.open')
|
|
509
517
|
.count()) > 0;
|
|
510
518
|
if (!isExpanded) {
|
|
511
|
-
await this.assignmentSection
|
|
519
|
+
await this.assignmentSection
|
|
520
|
+
.locator('.bio-properties-panel-group-header')
|
|
521
|
+
.click();
|
|
512
522
|
}
|
|
513
523
|
await this.priorityInput.click({ timeout: 30000 });
|
|
514
524
|
}
|