From a09968183d60aeed22f46515ba0a185b69f44658 Mon Sep 17 00:00:00 2001 From: Alano Terblanche <18033717+Benehiko@users.noreply.github.com> Date: Fri, 29 Sep 2023 15:18:31 +0200 Subject: [PATCH] chore: separate tests --- .../ory/helpers/node.spec.tsx | 126 +++++++++--------- 1 file changed, 61 insertions(+), 65 deletions(-) diff --git a/src/react-components/ory/helpers/node.spec.tsx b/src/react-components/ory/helpers/node.spec.tsx index ebec3c0c6..2ec2983ff 100644 --- a/src/react-components/ory/helpers/node.spec.tsx +++ b/src/react-components/ory/helpers/node.spec.tsx @@ -161,74 +161,70 @@ test("uiTextToFormattedMessage on a list", async ({ mount }) => { await expect(component).toContainText("q3vvtd4i") }) -test("button with id 1070007 or 1070008 should have formNoValidate", async ({ - mount, -}) => { - await test.step("button with id 1070007", async () => { - const component = await mount( - { + const component = await mount( + , - ) - - // formnovalidate is inline and won't work with the .toHaveAttribute matcher - await expect(component.locator("[formnovalidate]")).toBeAttached() - // text is injected from the translation file - await expect(component).toHaveText("Email") + }, + }} + />, + ) - await component.unmount() - }) + // formnovalidate is inline and won't work with the .toHaveAttribute matcher + await expect(component.locator("[formnovalidate]")).toBeAttached() + // text is injected from the translation file + await expect(component).toHaveText("Email") +}) - await test.step("button with id 1070008", async () => { - const component = await mount( - { + const component = await mount( + , - ) + }, + }} + />, + ) - // formnovalidate is inline and won't work with the .toHaveAttribute matcher - await expect(component.locator("[formnovalidate]")).toBeAttached() - // text is injected from the translation file - await expect(component).toHaveText("Resend code") - }) + // formnovalidate is inline and won't work with the .toHaveAttribute matcher + await expect(component.locator("[formnovalidate]")).toBeAttached() + // text is injected from the translation file + await expect(component).toHaveText("Resend code") })