Skip to content

Commit

Permalink
fix: try fixing failing tests (#2952)
Browse files Browse the repository at this point in the history
  • Loading branch information
sirtawast authored Apr 25, 2024
1 parent 752d9eb commit 3353dc8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,10 @@ test('Handler makes a favorable decision', async (t: TestController) => {
await t.click(Selector('#stateAidMaxPercentage-menu li:first-child'));

// Fill in the dates
await clearAndFill(t, '#endDate', format(endDate, DATE_FORMATS.UI_DATE));
await clearAndFill(t, '#startDate', format(startDate, DATE_FORMATS.UI_DATE));
await t.click('#endDate');
await t.click('#startDate');
await clearAndFill(t, '#endDate', format(endDate, DATE_FORMATS.UI_DATE));

// Click "Calculate" button
await t.click(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ import React from 'react';
import { waitFor } from 'shared/__tests__/utils/test-utils';
import { DEFAULT_LANGUAGE } from 'shared/i18n/i18n';

jest.retryTimes(5);

describe('frontend/kesaseteli/youth/src/pages/additional_info.tsx', () => {
const APPLICATION_ID = 'abc-123';

Expand Down

0 comments on commit 3353dc8

Please sign in to comment.