File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -175,7 +175,7 @@ class TouchHelper {
175175 type : 'pointerMove' ,
176176 origin : 'viewport' ,
177177 } ,
178- { button : 1 , type : 'pointerDown' } ,
178+ { button : 0 , type : 'pointerDown' } ,
179179 { duration : 600 , type : 'pause' } ,
180180 {
181181 duration : 600 ,
@@ -184,7 +184,7 @@ class TouchHelper {
184184 type : 'pointerMove' ,
185185 origin : 'viewport' ,
186186 } ,
187- { button : 1 , type : 'pointerUp' } ,
187+ { button : 0 , type : 'pointerUp' } ,
188188 ] ,
189189 } ,
190190 ] ) ;
@@ -195,7 +195,8 @@ class TouchHelper {
195195 const location = await element . getLocation ( ) ;
196196 const size = await element . getSize ( ) ;
197197
198- const x = side === 'leading' ? 0 : window . width - 50 ;
198+ const actionTapInset = Math . min ( 50 , size . width / 4 ) ;
199+ const x = side === 'leading' ? actionTapInset : window . width - actionTapInset ;
199200 const y = location . y + size . height / 2 ;
200201
201202 await driver . performActions ( [
Original file line number Diff line number Diff line change @@ -210,7 +210,7 @@ class EmailScreen extends BaseScreen {
210210 if ( text . length > 0 ) {
211211 expect ( messageElValue ) . toContain ( text ) ;
212212 } else {
213- expect ( messageElValue ) . toBeNull ( ) ;
213+ expect ( messageElValue ) . toEqual ( '' ) ;
214214 }
215215 } ;
216216
You can’t perform that action at this time.
0 commit comments