Skip to content

Commit

Permalink
Removed test that tested suunnitteluvaihe
Browse files Browse the repository at this point in the history
  • Loading branch information
umeetiusbaar committed Oct 23, 2023
1 parent b1117dd commit 2db10e4
Showing 1 changed file with 0 additions and 25 deletions.
25 changes: 0 additions & 25 deletions src/domain/hanke/edit/HankeForm.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -87,31 +87,6 @@ async function setupYhteystiedotPage(jsx: JSX.Element) {
}

describe('HankeForm', () => {
test('suunnitteluVaihde should be required when vaihe is suunnittelu', async () => {
const handleIsDirtyChange = jest.fn();
const handleFormClose = jest.fn();

const { user } = render(
<HankeForm
formData={formData}
onIsDirtyChange={handleIsDirtyChange}
onFormClose={handleFormClose}
>
child
</HankeForm>,
);

fireEvent.change(screen.getByTestId(FORMFIELD.NIMI), { target: { value: nimi } });
fireEvent.change(screen.getByTestId(FORMFIELD.KUVAUS), { target: { value: hankkeenKuvaus } });
fireEvent.change(screen.getByTestId(FORMFIELD.KATUOSOITE), {
target: { value: hankkeenOsoite },
});

await user.click(screen.getByRole('radio', { name: 'Suunnittelu' }));

await user.click(screen.getByRole('checkbox', { name: 'Hanke on YKT-hanke' }));
});

test('Form should be populated correctly ', () => {
render(
<HankeForm
Expand Down

0 comments on commit 2db10e4

Please sign in to comment.