File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
packages/android/tests/unit-test Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -607,20 +607,20 @@ describe('AndroidDevice', () => {
607
607
} ) ;
608
608
} ) ;
609
609
610
- it ( 'scrollUp should call mouseWheel with positive Y delta' , async ( ) => {
610
+ it ( 'scrollUp should call mouseWheel with negative Y delta' , async ( ) => {
611
611
const wheelSpy = vi
612
612
. spyOn ( device as any , 'mouseWheel' )
613
613
. mockResolvedValue ( undefined ) ;
614
614
await device . scrollUp ( 100 ) ;
615
- expect ( wheelSpy ) . toHaveBeenCalledWith ( 0 , 100 ) ;
615
+ expect ( wheelSpy ) . toHaveBeenCalledWith ( 0 , - 100 ) ;
616
616
} ) ;
617
617
618
- it ( 'scrollDown should call mouseWheel with negative Y delta' , async ( ) => {
618
+ it ( 'scrollDown should call mouseWheel with positive Y delta' , async ( ) => {
619
619
const wheelSpy = vi
620
620
. spyOn ( device as any , 'mouseWheel' )
621
621
. mockResolvedValue ( undefined ) ;
622
622
await device . scrollDown ( 100 ) ;
623
- expect ( wheelSpy ) . toHaveBeenCalledWith ( 0 , - 100 ) ;
623
+ expect ( wheelSpy ) . toHaveBeenCalledWith ( 0 , 100 ) ;
624
624
} ) ;
625
625
} ) ;
626
626
You can’t perform that action at this time.
0 commit comments