@@ -843,7 +843,7 @@ describe('MappingView', () => {
843843 expect (
844844 screen . getAllByText ( ( _ , node ) => node ?. textContent ?. includes ( 'Second' ) ?? false ) . length
845845 ) . toBeGreaterThan ( 0 ) ;
846- expect ( screen . getByText ( 'Assign to fields ' ) ) . toBeTruthy ( ) ;
846+ expect ( screen . getByText ( 'New location ' ) ) . toBeTruthy ( ) ;
847847 expect ( mockClearSelection ) . toHaveBeenCalledTimes ( 1 ) ;
848848 } ) ;
849849
@@ -870,9 +870,10 @@ describe('MappingView', () => {
870870 fireEvent . click ( screen . getByRole ( 'button' , { name : 'Edit content mapping' } ) ) ;
871871
872872 expect ( screen . getByRole ( 'heading' , { name : 'Edit content mapping' } ) ) . toBeTruthy ( ) ;
873- expect ( screen . getByText ( '“fresh body text”' ) ) . toBeTruthy ( ) ;
874- expect ( screen . getByText ( 'Assign to fields' ) ) . toBeTruthy ( ) ;
875- expect ( screen . getByText ( 'Article: Untitled' ) ) . toBeTruthy ( ) ;
873+ expect ( screen . getByText ( 'fresh body text' ) ) . toBeTruthy ( ) ;
874+ expect ( screen . getByText ( 'New location' ) ) . toBeTruthy ( ) ;
875+ expect ( screen . getAllByText ( 'Article' ) . length ) . toBeGreaterThan ( 0 ) ;
876+ expect ( screen . getAllByText ( 'Untitled' ) . length ) . toBeGreaterThan ( 0 ) ;
876877 expect ( mockClearSelection ) . toHaveBeenCalledTimes ( 1 ) ;
877878 } ) ;
878879
@@ -941,7 +942,7 @@ describe('MappingView', () => {
941942 fireEvent . click ( screen . getByRole ( 'button' , { name : 'Edit content mapping' } ) ) ;
942943
943944 expect ( screen . getByRole ( 'heading' , { name : 'Edit content mapping' } ) ) . toBeTruthy ( ) ;
944- expect ( screen . getByText ( 'Assign to fields ' ) ) . toBeTruthy ( ) ;
945+ expect ( screen . getByText ( 'New location ' ) ) . toBeTruthy ( ) ;
945946 expect ( screen . getAllByText ( 'Body copy' ) . length ) . toBeGreaterThan ( 0 ) ;
946947 expect ( mockClearSelection ) . toHaveBeenCalledTimes ( 1 ) ;
947948 } ) ;
@@ -1016,7 +1017,7 @@ describe('MappingView', () => {
10161017 fireEvent . click ( screen . getByRole ( 'button' , { name : 'Edit content mapping' } ) ) ;
10171018
10181019 expect ( screen . getByRole ( 'heading' , { name : 'Edit content mapping' } ) ) . toBeTruthy ( ) ;
1019- expect ( screen . getByText ( 'Assign to fields ' ) ) . toBeTruthy ( ) ;
1020+ expect ( screen . getByText ( 'New location ' ) ) . toBeTruthy ( ) ;
10201021 expect ( screen . getAllByText ( 'Body copy' ) . length ) . toBeGreaterThan ( 0 ) ;
10211022 expect ( mockClearSelection ) . toHaveBeenCalledTimes ( 1 ) ;
10221023 } ) ;
@@ -1051,6 +1052,7 @@ describe('MappingView', () => {
10511052 fireEvent . click ( screen . getByRole ( 'button' , { name : 'Assign image' } ) ) ;
10521053
10531054 expect ( screen . getByRole ( 'heading' , { name : 'Edit content mapping' } ) ) . toBeTruthy ( ) ;
1054- expect ( screen . getByText ( 'Selected Article: Untitled' ) ) . toBeTruthy ( ) ;
1055+ expect ( screen . getAllByText ( 'Selected Article' ) . length ) . toBeGreaterThan ( 0 ) ;
1056+ expect ( screen . getAllByText ( 'Untitled' ) . length ) . toBeGreaterThan ( 0 ) ;
10551057 } ) ;
10561058} ) ;
0 commit comments