From d5942fb41200fcaf5cedea66937f4d68a609696c Mon Sep 17 00:00:00 2001 From: Sem Bauke Date: Mon, 4 Dec 2023 19:43:02 +0100 Subject: [PATCH] test(e2e, playwright) editor components (#362) Co-authored-by: yoko <25644062+sidemt@users.noreply.github.com> --- apps/frontend/src/components/post-form.jsx | 11 +++++-- apps/frontend/src/components/tiptap.jsx | 3 ++ e2e/editor.spec.ts | 34 ++++++++++++++++++++++ 3 files changed, 46 insertions(+), 2 deletions(-) create mode 100644 e2e/editor.spec.ts diff --git a/apps/frontend/src/components/post-form.jsx b/apps/frontend/src/components/post-form.jsx index a1005923f..5000af832 100644 --- a/apps/frontend/src/components/post-form.jsx +++ b/apps/frontend/src/components/post-form.jsx @@ -289,7 +289,9 @@ const PostForm = ({ tags, user, authors, post }) => { {!isEditingTitle ? ( <> setIsEditingTitle(true)}> - {title} + + {title} + @@ -314,7 +316,12 @@ const PostForm = ({ tags, user, authors, post }) => { w="30%" isInvalid={form.errors.title && form.touched.title} > - + {form.errors.title} diff --git a/apps/frontend/src/components/tiptap.jsx b/apps/frontend/src/components/tiptap.jsx index 29a6e88bc..b63a47dac 100644 --- a/apps/frontend/src/components/tiptap.jsx +++ b/apps/frontend/src/components/tiptap.jsx @@ -90,6 +90,7 @@ function ToolBar({ editor, user }) { border="1px solid silver" borderRadius="lg" overflowX="auto" + id="toolbar" >