File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -79,10 +79,10 @@ describe("E2E drag & drop demo", () => {
7979 await mouse . move ( right ( 100 ) ) ;
8080 await mouse . leftClick ( ) ;
8181 const dest = await screen . find ( "moved_trash.png" ) ;
82- expect ( Math . abs ( dest . left - expected . left ) ) . toBeLessThan ( maxDiff ) ;
83- expect ( Math . abs ( dest . top - expected . top ) ) . toBeLessThan ( maxDiff ) ;
84- expect ( Math . abs ( dest . width - expected . width ) ) . toBeLessThan ( maxDiff ) ;
85- expect ( Math . abs ( dest . height - expected . height ) ) . toBeLessThan ( maxDiff ) ;
82+ expect ( Math . abs ( dest . left - expected . left ) ) . toBeLessThanOrEqual ( maxDiff ) ;
83+ expect ( Math . abs ( dest . top - expected . top ) ) . toBeLessThanOrEqual ( maxDiff ) ;
84+ expect ( Math . abs ( dest . width - expected . width ) ) . toBeLessThanOrEqual ( maxDiff ) ;
85+ expect ( Math . abs ( dest . height - expected . height ) ) . toBeLessThanOrEqual ( maxDiff ) ;
8686 } ) ;
8787} ) ;
8888
You can’t perform that action at this time.
0 commit comments