File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
webview-ui/src/components/history/__tests__ Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -106,10 +106,10 @@ describe("HistoryView", () => {
106106 // Verify copy the plain text content of the task when the copy button is clicked
107107 const taskContainer = screen . getByTestId ( "virtuoso-item-1" )
108108 fireEvent . mouseEnter ( taskContainer )
109- const copyButton = within ( taskContainer ) . getByTitle ( "Copy Prompt" ) ;
110- fireEvent . click ( copyButton ) ;
111- const taskContent = within ( taskContainer ) . getByTestId ( "task-content" ) ;
112- expect ( navigator . clipboard . writeText ) . toHaveBeenCalledWith ( taskContent . textContent ) ;
109+ const copyButton = within ( taskContainer ) . getByTestId ( "copy-prompt-button" )
110+ fireEvent . click ( copyButton )
111+ const taskContent = within ( taskContainer ) . getByTestId ( "task-content" )
112+ expect ( navigator . clipboard . writeText ) . toHaveBeenCalledWith ( taskContent . textContent )
113113 } )
114114
115115 it ( "handles sort options correctly" , async ( ) => {
You can’t perform that action at this time.
0 commit comments