Skip to content

Commit f318777

Browse files
committed
test(admin): fix tests working with ngx-mat-select-search
* After upgrading the library ngx-mat-select-search some tests strat failing due to the changed html structure of this component.
1 parent 6a2cf69 commit f318777

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,7 @@ describe('Perun admin management with role Perun admin', () => {
295295
.type(dbSearcherAttrValue, {force: true})
296296
.get(`[data-cy=search-select-input]`)
297297
.click()
298-
.get('[data-cy=find-input] > div > input')
298+
.get('[data-cy=find-input] > div > div > input')
299299
.type(dbSearcherAttrDisplayName, {force: true})
300300
.get('mat-option')
301301
.contains(dbSearcherAttrDisplayName)

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ describe('Perun admin management with role Perun observer', () => {
105105
.type(dbSearcherAttrValue, {force: true})
106106
.get(`[data-cy=search-select-input]`)
107107
.click()
108-
.get('[data-cy=find-input] > div > input')
108+
.get('[data-cy=find-input] > div > div > input')
109109
.type(dbSearcherAttrDisplayName, {force: true})
110110
.get('mat-option')
111111
.contains(dbSearcherAttrDisplayName)

apps/admin-gui-e2e/src/e2e/facilities/facility-admin.cy.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ describe('Facility management with role Facility admin', () => {
7777
.wait('@getAllVos')
7878
.get('[data-cy=create-resource-select-vo]')
7979
.click()
80-
.get('[data-cy=find-input] > div > input')
80+
.get('[data-cy=find-input] > div > div > input')
8181
.type(dbVoName, {force: true})
8282
.get('mat-option')
8383
.contains(dbVoName)

0 commit comments

Comments
 (0)