@camunda/e2e-test-suite 0.0.641 → 0.0.642

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.
@@ -91,21 +91,19 @@ class IdentityHomePage {
91
91
  }
92
92
  async selectOptionFromDropdown(option) {
93
93
  // The Identity "Assign permissions to application" dialog renders the
94
- // API list as a Carbon Dropdown rather than a native <select>. Using
95
- // Locator.selectOption() on the underlying `select` updates the form
96
- // value but does NOT trigger the Carbon component's React state, so
97
- // the dropdown stays open and the write/read permission checkboxes
98
- // are never rendered (observed in nightly run 26612986585 the
99
- // dropdown popup was still expanded when the test timed out waiting
100
- // for the `write:*` label).
94
+ // API list as a Carbon Select, which wraps a NATIVE <select> with native
95
+ // <option class="cds--select-option"> children. Native <option> elements
96
+ // are never "visible" to Playwright (the browser draws the option list as
97
+ // an OS-level widget, not as visible DOM), so clicking one via
98
+ // getByRole('option').click() always times out waiting for visibility
99
+ // observed in nightly run 26731057113, where the option resolved but the
100
+ // click never succeeded ("element is not visible").
101
101
  //
102
- // Open the dropdown and click the option from the listbox so the
103
- // Carbon handler fires, the popup closes, and the form re-renders
104
- // with the permission rows.
105
- await this.select.click();
106
- await this.page
107
- .getByRole('option', { name: option, exact: true })
108
- .click({ timeout: 10000 });
102
+ // Locator.selectOption() is the correct primitive for a native <select>:
103
+ // it sets the value and dispatches the `input`/`change` events that
104
+ // Carbon's onChange handler listens for, closing the picker and
105
+ // re-rendering the form with the write/read permission rows.
106
+ await this.select.selectOption({ label: option });
109
107
  await (0, sleep_1.sleep)(1000);
110
108
  }
111
109
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camunda/e2e-test-suite",
3
- "version": "0.0.641",
3
+ "version": "0.0.642",
4
4
  "description": "End-to-end test helpers for Camunda 8",
5
5
  "repository": {
6
6
  "type": "git",