feat(e2e): add data attributes for improved test stability

Add data-what and data-which attributes to key UI elements:
- Add back button attributes to return details and process components
- Add filter button attributes to the filter menu component
- Add sort button attributes for both desktop and mobile views
- Add result count element attributes for better selection
- Add attributes to search result items for identification
- Add attributes to loading spinners for state verification

These attributes improve E2E test stability by providing reliable selectors
that are not tied to styling or DOM structure changes.

Ref: #5052
This commit is contained in:
Lorenz Hilpert
2025-04-24 21:39:23 +02:00
parent 39d101d456
commit 22c0a7d5d9
6 changed files with 24 additions and 4 deletions

View File

@@ -5,6 +5,7 @@
(click)="toggle()"
type="button"
[class.active]="isIconButtonActive()"
data-what="filter-button"
>
<ng-icon name="isaActionFilter"></ng-icon>
</button>

View File

@@ -7,6 +7,8 @@
uiTextButton
type="button"
(click)="toggleOrderBy(orderBy)"
data-what="sort-button"
[attr.data-which]="orderBy.by"
>
<div>
{{ orderBy.label }}