Skip to content

Commit

Permalink
YKI(Frontend): Remove extra delay [deploy]
Browse files Browse the repository at this point in the history
  • Loading branch information
pkoivisto committed Mar 1, 2024
1 parent 106e2f1 commit 5ebb519
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
2 changes: 0 additions & 2 deletions frontend/packages/yki/src/redux/sagas/examSession.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,6 @@ function* loadExamSessionsSaga() {
axiosInstance.get,
APIEndpoints.ExamSessions,
);
// Add temporary delay for easier testing of loading indicator
yield delay(5000);

yield put(
storeExamSessions(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ describe('PublicRegistrationPage', () => {
});

describe('allows filtering exams', () => {
it.skip('but filter criteria must be selected first', () => {
it('but filter criteria must be selected first', () => {
onPublicRegistrationPage.search();
const dialogHeading = 'Valitse tutkinnon kieli ja taso';
findDialogByText(dialogHeading).should('be.visible');
Expand All @@ -22,14 +22,14 @@ describe('PublicRegistrationPage', () => {
cy.findByRole('dialog').should('not.exist');
});

it.skip('all results are available initially', () => {
it('all results are available initially', () => {
onPublicRegistrationPage.selectExamLanguage('kaikki kielet');
onPublicRegistrationPage.selectExamLevel('kaikki tasot');
onPublicRegistrationPage.search();
onPublicRegistrationPage.expectResultsCount(10);
});

it.skip('can filter by current availability', () => {
it('can filter by current availability', () => {
onPublicRegistrationPage.selectExamLanguage('kaikki kielet');
onPublicRegistrationPage.selectExamLevel('kaikki tasot');
onPublicRegistrationPage.toggleShowOnlyIfAvailablePlaces();
Expand All @@ -40,7 +40,7 @@ describe('PublicRegistrationPage', () => {
onPublicRegistrationPage.expectResultsCount(3);
});

it.skip('can filter by exam language and level', () => {
it('can filter by exam language and level', () => {
onPublicRegistrationPage.selectExamLanguage('suomi');
onPublicRegistrationPage.selectExamLevel('kaikki tasot');
onPublicRegistrationPage.search();
Expand Down

0 comments on commit 5ebb519

Please sign in to comment.