@camunda/e2e-test-suite 0.0.900 → 0.0.901

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,13 @@ class ModelerCreatePage {
127
127
  // name, so a role+name match on 'User task' is ambiguous as soon as a
128
128
  // diagram is called e.g. "Optimize Job Worker User Task Diagram".
129
129
  this.userTaskOption = page.locator('.djs-popup-results [data-id="replace-with-user-task"]');
130
- this.priorityInput = page.getByRole('textbox', { name: 'priority' });
130
+ // The user-task priority field renders as
131
+ // `<input type="number" id="bio-properties-panel-priorityDefinitionPriority">`,
132
+ // whose ARIA role is `spinbutton`, not `textbox`. A role=textbox query only
133
+ // matches it while the entry is flipped into FEEL mode (a CodeMirror
134
+ // editor), which is not a state this flow should depend on. Target the
135
+ // number input by its stable id instead.
136
+ this.priorityInput = page.locator('#bio-properties-panel-priorityDefinitionPriority');
131
137
  this.appendEndEventButton = page.getByRole('button', {
132
138
  name: 'Append end event',
133
139
  });
@@ -505,11 +511,19 @@ class ModelerCreatePage {
505
511
  await this.page.waitForTimeout(1000);
506
512
  }
507
513
  async clickPriorityInput() {
514
+ // `.bio-properties-panel-group-header empty open` is a descendant query for
515
+ // <empty><open> elements, so it always counted 0 and every call clicked the
516
+ // group container. Only the header toggles the group, so a container click
517
+ // lands on whichever entry sits at its centre once expanded — including an
518
+ // entry's `fx` FEEL toggle. Probe the header's own `open` class and click
519
+ // the header, so expanding is correct and idempotent across the loop.
508
520
  const isExpanded = (await this.assignmentSection
509
- .locator('.bio-properties-panel-group-header empty open')
521
+ .locator('.bio-properties-panel-group-header.open')
510
522
  .count()) > 0;
511
523
  if (!isExpanded) {
512
- await this.assignmentSection.click();
524
+ await this.assignmentSection
525
+ .locator('.bio-properties-panel-group-header')
526
+ .click({ timeout: 30000 });
513
527
  }
514
528
  await this.priorityInput.click({ timeout: 30000 });
515
529
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camunda/e2e-test-suite",
3
- "version": "0.0.900",
3
+ "version": "0.0.901",
4
4
  "description": "End-to-end test helpers for Camunda 8",
5
5
  "repository": {
6
6
  "type": "git",