fixed unit test problem and some other e2e

This commit is contained in:
Vito Albano
2023-12-20 12:12:39 +00:00
committed by VitoAlbano
parent 65dae6590d
commit 0efa4bea32
4 changed files with 25 additions and 8 deletions

View File

@@ -36,19 +36,35 @@
</div>
<div *ngIf="!readOnly">
<button mat-button [disabled]="!hasSelection()" (click)="moveSelectionUp()">
<button mat-button
data-automation-id="dynamic-table-button-move-up"
[disabled]="!hasSelection()"
(click)="moveSelectionUp()">
<mat-icon>arrow_upward</mat-icon>
</button>
<button mat-button [disabled]="!hasSelection()" (click)="moveSelectionDown()">
<button mat-button
data-automation-id="dynamic-table-button-move-down"
[disabled]="!hasSelection()"
(click)="moveSelectionDown()">
<mat-icon>arrow_downward</mat-icon>
</button>
<button mat-button [disabled]="field.readOnly" id="{{content.id}}-add-row" (click)="addNewRow()">
<button mat-button
data-automation-id="dynamic-table-button-add-row"
[disabled]="field.readOnly"
id="{{content.id}}-add-row"
(click)="addNewRow()">
<mat-icon>add_circle_outline</mat-icon>
</button>
<button mat-button [disabled]="!hasSelection()" (click)="deleteSelection()">
<button mat-button
data-automation-id="dynamic-table-button-remove"
[disabled]="!hasSelection()"
(click)="deleteSelection()">
<mat-icon>remove_circle_outline</mat-icon>
</button>
<button mat-button [disabled]="!hasSelection()" (click)="editSelection()">
<button mat-button
data-automation-id="dynamic-table-button-edit"
[disabled]="!hasSelection()"
(click)="editSelection()">
<mat-icon>edit</mat-icon>
</button>
</div>