Skip to content

Commit 792fbe2

Browse files
committed
test(admin): fix E2E test for Perun admin attribute settings
* After changes of setting of attribute definition also the related test had to be fixed.
1 parent 44910d0 commit 792fbe2

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

apps/admin-gui-e2e/src/e2e/admin/perun-admin.cy.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,9 @@ describe('Perun admin management with role Perun admin', () => {
6868
.type('testAttrE2E', {force: true})
6969
.get('[data-cy=attribute-description-input]')
7070
.type('test attribute for E2E tests', {force: true})
71-
.get('[data-cy=toggle-read-critical]')
71+
.get('[data-cy=checkbox-read-operation]')
72+
.click()
73+
.get('[data-cy=checkbox-read-critical]')
7274
.click()
7375
.get('[data-cy=create-attr-definition-button]')
7476
.click()

libs/perun/components/src/lib/attribute-critical-operations-checkboxes/attribute-critical-operations-checkboxes.component.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
<mat-checkbox
22
class="checkbox-main"
3+
data-cy="checkbox-read-operation"
34
labelPosition="after"
45
[(ngModel)]="readOperation"
56
(change)="changeReadOperation()"
@@ -14,6 +15,7 @@
1415
(change)="readGlobalChanged.emit(readGlobal)"
1516
matTooltipPosition="after"
1617
matTooltip="{{'SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_CRITICAL_OPERATIONS_CHECKBOX.GLOBAL_READ_TOOLTIP'| translate}}"
18+
data-cy="checkbox-read-critical"
1719
class="ms-4 fst-italic">
1820
{{'SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_CRITICAL_OPERATIONS_CHECKBOX.GLOBAL' | translate}}
1921
</mat-checkbox>

0 commit comments

Comments
 (0)