@@ -49,13 +49,17 @@ test('Appium iOS snapshots acquire facts and publish regular output through the
4949} ) ;
5050
5151test ( 'Appium iOS options become an engine plan and engine-owned projection' , ( ) => {
52- const acquired = acquireWebDriverIosSnapshot ( SOURCE , {
53- raw : true ,
54- interactiveOnly : true ,
55- depth : 1 ,
56- scope : 'Continue' ,
57- customActions : true ,
58- } ) ;
52+ const acquired = acquireWebDriverIosSnapshot (
53+ SOURCE ,
54+ {
55+ raw : true ,
56+ interactiveOnly : true ,
57+ depth : 1 ,
58+ scope : 'Continue' ,
59+ customActions : true ,
60+ } ,
61+ 'ios-2' ,
62+ ) ;
5963
6064 assert . equal ( acquired . input . stage , 'acquired' ) ;
6165 assert . deepEqual ( acquired . plan . narrowing , {
@@ -71,7 +75,7 @@ test('Appium iOS options become an engine plan and engine-owned projection', ()
7175 customActions : true ,
7276 acquisitionIntent : 'full' ,
7377 } ) ;
74- assert . deepEqual ( acquired . input . acquisition . lineage , { } ) ;
78+ assert . deepEqual ( acquired . input . acquisition . lineage , { targetId : 'ios-2' } ) ;
7579 assert . deepEqual ( acquired . input . acquisition . viewport , {
7680 kind : 'reported' ,
7781 rect : { x : 0 , y : 0 , width : 390 , height : 844 } ,
@@ -82,7 +86,7 @@ test('Appium iOS options become an engine plan and engine-owned projection', ()
8286 published . result . nodes ?. map ( ( node ) => [ node . type , node . label , node . depth , node . parentIndex ] ) ,
8387 [ [ 'XCUIElementTypeButton' , 'Continue' , 0 , undefined ] ] ,
8488 ) ;
85- assert . deepEqual ( published . publication . comparisonIdentity . lineage , { } ) ;
89+ assert . deepEqual ( published . publication . comparisonIdentity . lineage , { targetId : 'ios-2' } ) ;
8690} ) ;
8791
8892test ( 'Appium regular presentation omits unavailable hittability while raw preserves supplied facts' , async ( ) => {
@@ -93,8 +97,9 @@ test('Appium regular presentation omits unavailable hittability while raw preser
9397
9498 const regular = await captureWebDriverIosSnapshot ( { source : async ( ) => source } ) ;
9599 const regularButton = regular . nodes ?. find ( ( node ) => node . label === 'Continue' ) ;
100+ assert . ok ( regularButton ) ;
96101 assert . equal ( regularButton ?. hittable , undefined ) ;
97- assert . equal ( 'hittable' in ( regularButton ?? { } ) , false ) ;
102+ assert . equal ( 'hittable' in regularButton , false ) ;
98103
99104 const raw = await captureWebDriverIosSnapshot ( { source : async ( ) => source } , { raw : true } ) ;
100105 assert . equal ( raw . nodes ?. find ( ( node ) => node . label === 'Continue' ) ?. hittable , true ) ;
0 commit comments