@@ -56,7 +56,7 @@ describe("PromptForm – rendering", () => {
5656 it ( "renders all form fields" , ( ) => {
5757 renderWithAuth ( ) ;
5858 expect ( screen . getByPlaceholderText ( "Give your prompt a name" ) ) . toBeInTheDocument ( ) ;
59- expect ( screen . getByPlaceholderText ( "Enter your prompt here..." ) ) . toBeInTheDocument ( ) ;
59+ expect ( screen . getByPlaceholderText ( "Paste or type your prompt here..." ) ) . toBeInTheDocument ( ) ;
6060 expect ( screen . getByPlaceholderText ( "e.g. coding" ) ) . toBeInTheDocument ( ) ;
6161 expect ( screen . getByRole ( "button" , { name : / s a v e p r o m p t / i } ) ) . toBeInTheDocument ( ) ;
6262 } ) ;
@@ -72,7 +72,7 @@ describe("PromptForm – unauthenticated behavior", () => {
7272 it ( "redirects to /login on submit when user is not authenticated" , async ( ) => {
7373 renderWithAuth ( null ) ;
7474 await userEvent . type ( screen . getByPlaceholderText ( "Give your prompt a name" ) , "Test Prompt" ) ;
75- await userEvent . type ( screen . getByPlaceholderText ( "Enter your prompt here..." ) , "Some content" ) ;
75+ await userEvent . type ( screen . getByPlaceholderText ( "Paste or type your prompt here..." ) , "Some content" ) ;
7676 await userEvent . click ( screen . getByRole ( "button" , { name : / s a v e p r o m p t / i } ) ) ;
7777
7878 expect ( mockPush ) . toHaveBeenCalledWith ( "/login" ) ;
@@ -90,7 +90,7 @@ describe("PromptForm – authenticated submission", () => {
9090 it ( "calls addOptimistic and navigates home on valid submit" , async ( ) => {
9191 renderWithAuth ( ) ;
9292 await userEvent . type ( screen . getByPlaceholderText ( "Give your prompt a name" ) , "My Prompt" ) ;
93- await userEvent . type ( screen . getByPlaceholderText ( "Enter your prompt here..." ) , "Prompt content" ) ;
93+ await userEvent . type ( screen . getByPlaceholderText ( "Paste or type your prompt here..." ) , "Prompt content" ) ;
9494 await userEvent . click ( screen . getByRole ( "button" , { name : / s a v e p r o m p t / i } ) ) ;
9595
9696 expect ( mockAddOptimistic ) . toHaveBeenCalledWith (
@@ -102,7 +102,7 @@ describe("PromptForm – authenticated submission", () => {
102102 it ( "defaults collection to 'uncategorized' when left blank" , async ( ) => {
103103 renderWithAuth ( ) ;
104104 await userEvent . type ( screen . getByPlaceholderText ( "Give your prompt a name" ) , "Prompt" ) ;
105- await userEvent . type ( screen . getByPlaceholderText ( "Enter your prompt here..." ) , "Content" ) ;
105+ await userEvent . type ( screen . getByPlaceholderText ( "Paste or type your prompt here..." ) , "Content" ) ;
106106 await userEvent . click ( screen . getByRole ( "button" , { name : / s a v e p r o m p t / i } ) ) ;
107107
108108 expect ( mockAddOptimistic ) . toHaveBeenCalledWith (
@@ -113,7 +113,7 @@ describe("PromptForm – authenticated submission", () => {
113113 it ( "uses the entered collection name when provided" , async ( ) => {
114114 renderWithAuth ( ) ;
115115 await userEvent . type ( screen . getByPlaceholderText ( "Give your prompt a name" ) , "Prompt" ) ;
116- await userEvent . type ( screen . getByPlaceholderText ( "Enter your prompt here..." ) , "Content" ) ;
116+ await userEvent . type ( screen . getByPlaceholderText ( "Paste or type your prompt here..." ) , "Content" ) ;
117117 await userEvent . type ( screen . getByPlaceholderText ( "e.g. coding" ) , "engineering" ) ;
118118 await userEvent . click ( screen . getByRole ( "button" , { name : / s a v e p r o m p t / i } ) ) ;
119119
@@ -125,7 +125,7 @@ describe("PromptForm – authenticated submission", () => {
125125 it ( "calls savePrompt asynchronously after optimistic update" , async ( ) => {
126126 renderWithAuth ( ) ;
127127 await userEvent . type ( screen . getByPlaceholderText ( "Give your prompt a name" ) , "Prompt" ) ;
128- await userEvent . type ( screen . getByPlaceholderText ( "Enter your prompt here..." ) , "Content" ) ;
128+ await userEvent . type ( screen . getByPlaceholderText ( "Paste or type your prompt here..." ) , "Content" ) ;
129129 await userEvent . click ( screen . getByRole ( "button" , { name : / s a v e p r o m p t / i } ) ) ;
130130
131131 await waitFor ( ( ) => {
@@ -138,7 +138,7 @@ describe("PromptForm – authenticated submission", () => {
138138 it ( "calls refresh after savePrompt resolves" , async ( ) => {
139139 renderWithAuth ( ) ;
140140 await userEvent . type ( screen . getByPlaceholderText ( "Give your prompt a name" ) , "Prompt" ) ;
141- await userEvent . type ( screen . getByPlaceholderText ( "Enter your prompt here..." ) , "Content" ) ;
141+ await userEvent . type ( screen . getByPlaceholderText ( "Paste or type your prompt here..." ) , "Content" ) ;
142142 await userEvent . click ( screen . getByRole ( "button" , { name : / s a v e p r o m p t / i } ) ) ;
143143
144144 await waitFor ( ( ) => expect ( mockRefresh ) . toHaveBeenCalled ( ) ) ;
@@ -150,7 +150,7 @@ describe("PromptForm – authenticated submission", () => {
150150 jest . spyOn ( console , "error" ) . mockImplementation ( ( ) => { } ) ;
151151 renderWithAuth ( ) ;
152152 await userEvent . type ( screen . getByPlaceholderText ( "Give your prompt a name" ) , "Prompt" ) ;
153- await userEvent . type ( screen . getByPlaceholderText ( "Enter your prompt here..." ) , "Content" ) ;
153+ await userEvent . type ( screen . getByPlaceholderText ( "Paste or type your prompt here..." ) , "Content" ) ;
154154 await userEvent . click ( screen . getByRole ( "button" , { name : / s a v e p r o m p t / i } ) ) ;
155155
156156 await waitFor ( ( ) => expect ( mockRefresh ) . toHaveBeenCalled ( ) ) ;
@@ -159,7 +159,7 @@ describe("PromptForm – authenticated submission", () => {
159159 it ( "generated prompt has a non-empty id and ISO timestamp" , async ( ) => {
160160 renderWithAuth ( ) ;
161161 await userEvent . type ( screen . getByPlaceholderText ( "Give your prompt a name" ) , "Prompt" ) ;
162- await userEvent . type ( screen . getByPlaceholderText ( "Enter your prompt here..." ) , "Content" ) ;
162+ await userEvent . type ( screen . getByPlaceholderText ( "Paste or type your prompt here..." ) , "Content" ) ;
163163 await userEvent . click ( screen . getByRole ( "button" , { name : / s a v e p r o m p t / i } ) ) ;
164164
165165 const optimisticArg = mockAddOptimistic . mock . calls [ 0 ] [ 0 ] ;
0 commit comments