Skip to content

Commit

Permalink
YKI(Frontend): Fix tests [deploy]
Browse files Browse the repository at this point in the history
  • Loading branch information
pkoivisto committed Mar 1, 2024
1 parent 5ebb519 commit eae53cc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion frontend/packages/yki/src/redux/sagas/examSession.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { call, delay, put, takeLatest } from '@redux-saga/core/effects';
import { call, put, takeLatest } from '@redux-saga/core/effects';
import { PayloadAction } from '@reduxjs/toolkit';
import { AxiosResponse } from 'axios';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class PublicRegistrationPage {
cy.findByLabelText(
'Näytä vain kielitutkinnot, joihin voi ilmoittautua nyt',
),
searchButton: () => cy.contains('Hae'),
searchButton: () => cy.findByRole('button', { name: /Hae/ }),
title: () => cy.findByTestId('public-registration-page__title-heading'),
};

Expand Down Expand Up @@ -51,6 +51,7 @@ class PublicRegistrationPage {
}

search() {
this.elements.searchButton().should('not.be.disabled');
this.elements.searchButton().click();
}

Expand Down

0 comments on commit eae53cc

Please sign in to comment.