@@ -10,17 +10,17 @@ describe('SchedulePage', () => {
1010 // The real ScheduleService will call fetch() which is mocked
1111 // to return XML data, which the service will parse and display
1212 expect ( screen . getByText ( 'Africa Kabisa' ) ) . toBeTruthy ( ) ;
13- expect ( screen . getByText ( ' Post-tentious' ) ) . toBeTruthy ( ) ;
13+ expect ( screen . getByText ( / P o s t - t e n t i o u s . * / ) ) . toBeTruthy ( ) ;
1414 } ) ;
1515
1616 test ( 'navigates to ShowDetails when tapping a show with archives' , async ( ) => {
1717 const user = userEvent . setup ( ) ;
1818 await renderAsync ( < ScheduleStack /> , { wrapper : TestWrapper } ) ;
1919
20- expect ( screen . getByText ( ' Post-tentious' ) ) . toBeTruthy ( ) ;
20+ expect ( screen . getByText ( / P o s t - t e n t i o u s . * / ) ) . toBeTruthy ( ) ;
2121
2222 // Tap on the Post-tentious show
23- const showButton = screen . getByText ( ' Post-tentious' ) ;
23+ const showButton = screen . getByText ( / P o s t - t e n t i o u s . * / ) ;
2424 await user . press ( showButton ) ;
2525
2626 // Look for content that's unique to the ShowDetails page
@@ -34,8 +34,8 @@ describe('SchedulePage', () => {
3434 await renderAsync ( < ScheduleStack /> , { wrapper : TestWrapper } ) ;
3535
3636 // Wait for schedule to load and tap on a show
37- expect ( screen . getByText ( ' Post-tentious' ) ) . toBeTruthy ( ) ;
38- await user . press ( screen . getByText ( ' Post-tentious' ) ) ;
37+ expect ( screen . getByText ( / P o s t - t e n t i o u s . * / ) ) . toBeTruthy ( ) ;
38+ await user . press ( screen . getByText ( / P o s t - t e n t i o u s . * / ) ) ;
3939
4040 // Wait for ShowDetails to load with archives
4141 expect ( screen . getByText ( 'Archives' ) ) . toBeTruthy ( ) ;
@@ -48,7 +48,7 @@ describe('SchedulePage', () => {
4848
4949 // Verify we're on the ArchivedShowView page by looking for playlist content
5050 // The mock playlist has songs: "Waiting Room" by Fugazi and "Breadcrumb Trail" by Slint
51- expect ( screen . getByText ( ' Waiting Room' ) ) . toBeTruthy ( ) ;
52- expect ( screen . getByText ( ' Fugazi' ) ) . toBeTruthy ( ) ;
51+ expect ( screen . getByText ( / W a i t i n g R o o m . * / ) ) . toBeTruthy ( ) ;
52+ expect ( screen . getByText ( / F u g a z i . * / ) ) . toBeTruthy ( ) ;
5353 } ) ;
5454} ) ;
0 commit comments