aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/templates/page/page-layout.test.tsx
diff options
context:
space:
mode:
authorArmand Philippot <git@armandphilippot.com>2023-11-04 19:26:16 +0100
committerArmand Philippot <git@armandphilippot.com>2023-11-11 18:15:27 +0100
commit2771de88f40a5f4ed7480bd8614532dda72deeda (patch)
treeed4d1b9ee3f6322817efa2d1b1113c247367a12a /src/components/templates/page/page-layout.test.tsx
parentc4a561c333f6f82678efcffef5ce3ed0f8e322f4 (diff)
refactor(components): rewrite CommentForm component
* remove `Notice` prop to handle it directly in the form * replace `saveComment` prop with `onSubmit` * use `useForm` hook to handle the form
Diffstat (limited to 'src/components/templates/page/page-layout.test.tsx')
-rw-r--r--src/components/templates/page/page-layout.test.tsx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/components/templates/page/page-layout.test.tsx b/src/components/templates/page/page-layout.test.tsx
index 6609b48..394f995 100644
--- a/src/components/templates/page/page-layout.test.tsx
+++ b/src/components/templates/page/page-layout.test.tsx
@@ -83,7 +83,7 @@ describe('PageLayout', () => {
</PageLayout>
);
expect(
- rtlScreen.getByRole('form', { name: /Leave a comment/i })
+ rtlScreen.getByRole('form', { name: /Comment form/i })
).toBeInTheDocument();
});