From 2db10e42b7788be436559b0dd968cf8981f3aa80 Mon Sep 17 00:00:00 2001 From: Teemu Hiltunen Date: Mon, 23 Oct 2023 15:20:02 +0300 Subject: [PATCH] Removed test that tested suunnitteluvaihe --- src/domain/hanke/edit/HankeForm.test.tsx | 25 ------------------------ 1 file changed, 25 deletions(-) diff --git a/src/domain/hanke/edit/HankeForm.test.tsx b/src/domain/hanke/edit/HankeForm.test.tsx index e775ad2a1..3348e53b8 100644 --- a/src/domain/hanke/edit/HankeForm.test.tsx +++ b/src/domain/hanke/edit/HankeForm.test.tsx @@ -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( - - child - , - ); - - 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(