@@ -22,24 +22,24 @@ describe('ResultDisplay', () => {
2222 render ( < ResultDisplay result = { mockResult } onClose = { mockOnClose } /> ) ;
2323
2424 expect ( screen . getByText ( '🎉' ) ) . toBeInTheDocument ( ) ;
25- expect ( screen . getByText ( 'Feed Generated Successfully !' ) ) . toBeInTheDocument ( ) ;
26- expect ( screen . getByText ( 'Your RSS feed is ready to use ' ) ) . toBeInTheDocument ( ) ;
25+ expect ( screen . getByText ( 'Your RSS feed is live !' ) ) . toBeInTheDocument ( ) ;
26+ expect ( screen . getByText ( 'Drop it straight into your reader or explore the preview without leaving this page. ' ) ) . toBeInTheDocument ( ) ;
2727 } ) ;
2828
29- it ( 'should call onClose when close button is clicked' , ( ) => {
29+ it ( 'should call onClose when convert-another button is clicked' , ( ) => {
3030 render ( < ResultDisplay result = { mockResult } onClose = { mockOnClose } /> ) ;
3131
32- const closeButton = screen . getByText ( 'Close' ) ;
33- fireEvent . click ( closeButton ) ;
32+ const resetButton = screen . getByRole ( 'button' , { name : 'Convert another website' } ) ;
33+ fireEvent . click ( resetButton ) ;
3434
3535 expect ( mockOnClose ) . toHaveBeenCalled ( ) ;
3636 } ) ;
3737
3838 it ( 'should copy feed URL to clipboard when copy button is clicked' , async ( ) => {
3939 render ( < ResultDisplay result = { mockResult } onClose = { mockOnClose } /> ) ;
4040
41- const copyButton = screen . getByText ( '📋' ) ;
42- fireEvent . click ( copyButton ) ;
41+ const copyLinkButton = screen . getByRole ( 'button' , { name : 'Copy feed link' } ) ;
42+ fireEvent . click ( copyLinkButton ) ;
4343
4444 await waitFor ( ( ) => {
4545 expect ( navigator . clipboard . writeText ) . toHaveBeenCalledWith ( 'feed:https://example.com/feed.xml' ) ;
0 commit comments