Skip to content

Commit 8354754

Browse files
committed
improved search-switch-configuration select method
1 parent d5cd7f6 commit 8354754

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

cypress/e2e/my-dspace.cy.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,11 @@ describe('My DSpace page', () => {
239239
}).as('workflowSearch');
240240

241241
//Change view to see workflow tasks
242-
cy.get('ds-search-switch-configuration select').select('2: Object');
242+
cy.get('ds-search-switch-configuration select')
243+
.find('option[data-test="workflow"]')
244+
.then(option => {
245+
cy.get('ds-search-switch-configuration select').select(option.val());
246+
});
243247

244248
//Await backend search response
245249
cy.wait('@workflowSearch');

src/app/shared/search/search-switch-configuration/search-switch-configuration.component.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ <h3 id="configuration-switch">{{ 'search.switch-configuration.title' | translate
77
[(ngModel)]="selectedOption"
88
(change)="onSelect()">
99
@for (option of configurationList; track option) {
10-
<option [ngValue]="option">
10+
<option [attr.data-test]="option.value" [ngValue]="option">
1111
{{option.label | translate}}
1212
</option>
1313
}

0 commit comments

Comments
 (0)