File tree Expand file tree Collapse file tree 1 file changed +1
-6
lines changed
apps/docs/src/remix-hook-form Expand file tree Collapse file tree 1 file changed +1
-6
lines changed Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ const ControlledTextareaExample = () => {
3030 onValid : ( data ) => {
3131 fetcher . submit (
3232 createFormData ( {
33- submittedMessage : data . message ,
33+ message : data . message ,
3434 } ) ,
3535 {
3636 method : 'post' ,
@@ -121,11 +121,6 @@ const testValidSubmission = async ({ canvas }: StoryContext) => {
121121 // Check for success message
122122 const successMessage = await canvas . findByText ( 'Message submitted successfully' ) ;
123123 expect ( successMessage ) . toBeInTheDocument ( ) ;
124-
125- // Check if the submitted message is displayed
126- await expect (
127- await canvas . findByText ( 'This is a test message that is longer than 10 characters.' ) ,
128- ) . toBeInTheDocument ( ) ;
129124} ;
130125
131126export const Default : Story = {
You can’t perform that action at this time.
0 commit comments