@@ -23,8 +23,8 @@ describe("UploadRecipe Component", () => {
2323 it ( "renders upload button in idle state" , ( ) => {
2424 render ( < UploadRecipe /> ) ;
2525
26- expect ( screen . getByText ( "Upload Recipe PDF " ) ) . toBeInTheDocument ( ) ;
27- expect ( screen . getByLabelText ( "Upload Recipe PDF " ) ) . toBeInTheDocument ( ) ;
26+ expect ( screen . getByText ( "Upload Recipe Book " ) ) . toBeInTheDocument ( ) ;
27+ expect ( screen . getByLabelText ( "Upload Recipe Book " ) ) . toBeInTheDocument ( ) ;
2828 } ) ;
2929
3030 it ( "shows uploading state when file is selected" , async ( ) => {
@@ -36,7 +36,7 @@ describe("UploadRecipe Component", () => {
3636 render ( < UploadRecipe /> ) ;
3737
3838 const fileInput = screen . getByLabelText (
39- "Upload Recipe PDF " ,
39+ "Upload Recipe Book " ,
4040 ) as HTMLInputElement ;
4141 const file = new File ( [ "test content" ] , "recipe.pdf" , {
4242 type : "application/pdf" ,
@@ -60,12 +60,12 @@ describe("UploadRecipe Component", () => {
6060 render ( < UploadRecipe /> ) ;
6161
6262 const fileInput = screen . getByLabelText (
63- "Upload Recipe PDF " ,
63+ "Upload Recipe Book " ,
6464 ) as HTMLInputElement ;
6565
6666 fireEvent . change ( fileInput ! , { target : { files : [ ] } } ) ;
6767
6868 expect ( mockFetch ) . not . toHaveBeenCalled ( ) ;
69- expect ( screen . getByText ( "Upload Recipe PDF " ) ) . toBeInTheDocument ( ) ;
69+ expect ( screen . getByText ( "Upload Recipe Book " ) ) . toBeInTheDocument ( ) ;
7070 } ) ;
7171} ) ;
0 commit comments