Skip to content

Commit a7e1034

Browse files
committed
OTR(Frontend): Fix and enable failing test.
The old selector didn't for some reason want to find the correct element to type into. We "fix" this by instead using a role query, which is more in line with the testing library matching philosophy.
1 parent f9778cd commit a7e1034

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

frontend/packages/otr/src/tests/cypress/integration/public_home_page.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ describe('PublicHomePage', () => {
1212
);
1313
});
1414

15-
it.skip('should allow combining different options to filter interpreters', () => {
15+
it('should allow combining different options to filter interpreters', () => {
1616
onPublicHomePage.expectFilteredInterpretersCount(
1717
publicInterpreters10.length,
1818
);

frontend/packages/otr/src/tests/cypress/support/page-objects/publicHomePage.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { selectComboBoxOptionByName } from 'tests/cypress/support/utils/comboBox
22

33
class PublicHomePage {
44
elements = {
5-
nameFilter: () => cy.findByTestId('public-interpreter-filters__name-field'),
5+
nameFilter: () => cy.findByRole('searchbox', { name: "Nimi" }),
66
regionFilter: () =>
77
cy.findByTestId('public-interpreter-filters__region-combobox'),
88
searchButton: () =>

0 commit comments

Comments
 (0)