@@ -15,7 +15,7 @@ const getElementMethods = () => ({
1515 isClickable : vi . spyOn ( { isClickable : async ( ) => true } , 'isClickable' ) ,
1616 isFocused : vi . spyOn ( { isFocused : async ( ) => true } , 'isFocused' ) ,
1717 isEnabled : vi . spyOn ( { isEnabled : async ( ) => true } , 'isEnabled' ) ,
18- getProperty : vi . spyOn ( { getProperty : async ( _prop : string ) => undefined } , 'getProperty' ) ,
18+ getProperty : vi . spyOn ( { getProperty : async ( _prop : string ) => '1' } , 'getProperty' ) ,
1919 getText : vi . spyOn ( { getText : async ( ) => ' Valid Text ' } , 'getText' ) ,
2020 getHTML : vi . spyOn ( { getHTML : async ( ) => { return '<Html/>' } } , 'getHTML' ) ,
2121 getComputedLabel : vi . spyOn ( { getComputedLabel : async ( ) => 'Computed Label' } , 'getComputedLabel' ) ,
@@ -25,6 +25,7 @@ const getElementMethods = () => ({
2525 if ( prop === 'height' ) { return 50 }
2626 return { width : 100 , height : 50 } satisfies Size
2727 } } , 'getSize' ) as unknown as WebdriverIO . Element [ 'getSize' ] ,
28+ getAttribute : vi . spyOn ( { getAttribute : async ( _attr : string ) => 'some attribute' } , 'getAttribute' ) ,
2829} satisfies Partial < WebdriverIO . Element > )
2930
3031function $ ( _selector : string ) {
0 commit comments