Skip to content

Commit

Permalink
Merge pull request #1221 from opensrp/inspect-long-running-tests
Browse files Browse the repository at this point in the history
Inspect long running test in opensrp-plans
  • Loading branch information
mutuajames committed Jun 29, 2023
2 parents 145a4d9 + 9295e28 commit cbe0d8e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
4 changes: 4 additions & 0 deletions .yarnrc
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,7 @@


yarn-path ".yarn/releases/yarn-1.18.0.cjs"

# yarn install timing out on github ci - increase timeout to 5 mins
# https://github.com/yarnpkg/yarn/issues/5540#issuecomment-374069461
network-timeout 300000
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { Router } from 'react-router';
import { Provider } from 'react-redux';
import { mount } from 'enzyme';
import { Helmet } from 'react-helmet';
import { act } from 'react-dom/test-utils';
import { act } from '@testing-library/react';

import { PlanFormFieldsKeys } from '@opensrp/plan-form';
import { DRAFT_PLANS_LIST_VIEW_URL } from '../../../constants';
Expand Down Expand Up @@ -51,6 +51,8 @@ describe('Create Plan Page', () => {
expect((wrapper.find('Router').props() as any).history.location.pathname).toEqual(
DRAFT_PLANS_LIST_VIEW_URL
);

wrapper.unmount();
});

it('planForm gets configured', async () => {
Expand Down Expand Up @@ -110,5 +112,7 @@ describe('Create Plan Page', () => {

// date is hidden by default
expect(wrapper.find('FormItem#description').props().hidden).toBeFalsy();

wrapper.unmount();
});
});

0 comments on commit cbe0d8e

Please sign in to comment.