@@ -17,7 +17,13 @@ describe.e2e(':ios: SearchBar', () => {
1717 await expect ( elementByTraits ( [ 'searchField' ] ) ) . toBeNotVisible ( ) ;
1818 } ) ;
1919
20- it ( 'find magnifying button in integrated placement and tap it' , async ( ) => {
20+ it ( 'find magnifying button in integrated placement and tap it (iOS 26+)' , async ( ) => {
21+ try {
22+ await expect ( elementById ( TestIDs . TOGGLE_PLACEMENT_BTN ) ) . toExist ( ) ;
23+ } catch ( e ) {
24+ console . log ( 'Skipping - requires iOS 26+' ) ;
25+ return ;
26+ }
2127 await elementById ( TestIDs . TOGGLE_PLACEMENT_BTN ) . tap ( ) ;
2228 await elementById ( TestIDs . SHOW_SEARCH_BAR_BTN ) . tap ( ) ;
2329 const searchButton = element (
@@ -46,11 +52,21 @@ describe.e2e(':ios: SearchBar Modal', () => {
4652 it ( 'searching then exiting works' , async ( ) => {
4753 await elementById ( TestIDs . SHOW_SEARCH_BAR_BTN ) . tap ( ) ;
4854 await elementByTraits ( [ 'searchField' ] ) . replaceText ( 'foo' ) ;
49- await elementById ( TestIDs . DISMISS_MODAL_TOPBAR_BTN ) . tap ( ) ;
50- await expect ( elementById ( TestIDs . OPTIONS_TAB ) ) . toBeVisible ( ) ;
55+ try {
56+ await expect ( elementById ( TestIDs . TOGGLE_PLACEMENT_BTN ) ) . toExist ( ) ;
57+ } catch ( e ) {
58+ await elementById ( TestIDs . DISMISS_MODAL_TOPBAR_BTN ) . tap ( ) ;
59+ await expect ( elementById ( TestIDs . OPTIONS_TAB ) ) . toBeVisible ( ) ;
60+ }
5161 } ) ;
5262
53- it ( 'find magnifying button in integrated placement and tap it' , async ( ) => {
63+ it ( 'find magnifying button in integrated placement and tap it (iOS 26+)' , async ( ) => {
64+ try {
65+ await expect ( elementById ( TestIDs . TOGGLE_PLACEMENT_BTN ) ) . toExist ( ) ;
66+ } catch ( e ) {
67+ console . log ( 'Skipping - requires iOS 26+' ) ;
68+ return ;
69+ }
5470 await elementById ( TestIDs . TOGGLE_PLACEMENT_BTN ) . tap ( ) ;
5571 await elementById ( TestIDs . SHOW_SEARCH_BAR_BTN ) . tap ( ) ;
5672 const searchButton = element (
0 commit comments