@camunda/e2e-test-suite 0.0.1074 → 0.0.1075

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.
@@ -89,7 +89,14 @@ class OCIdentityRolesPage {
89
89
  exact: true,
90
90
  });
91
91
  this.createRoleModalCreateButton = this.createRoleModal.getByRole('button', { name: 'Create role' });
92
- this.deleteRoleButton = (rowName) => this.rolesList.getByRole('row', { name: rowName }).getByLabel('Delete');
92
+ // The design-system DataTable renders the row's dangerous action as a
93
+ // labelled button - the trash icon is aria-hidden and the accessible name
94
+ // comes from the visible "Delete" text - while Carbon rendered an icon
95
+ // button carrying aria-label="Delete". getByLabel only matches the latter,
96
+ // so match the accessible name instead, which covers both DOMs.
97
+ this.deleteRoleButton = (rowName) => this.rolesList
98
+ .getByRole('row', { name: rowName })
99
+ .getByRole('button', { name: /^delete/i });
93
100
  this.deleteRoleModal = page.getByRole('dialog', { name: /delete role/i });
94
101
  this.closeDeleteRoleModal = this.deleteRoleModal.getByRole('button', {
95
102
  name: 'Close',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camunda/e2e-test-suite",
3
- "version": "0.0.1074",
3
+ "version": "0.0.1075",
4
4
  "description": "End-to-end test helpers for Camunda 8",
5
5
  "repository": {
6
6
  "type": "git",