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", () => {
79
79
await mouse . move ( right ( 100 ) ) ;
80
80
await mouse . leftClick ( ) ;
81
81
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 ) ;
86
86
} ) ;
87
87
} ) ;
88
88
You can’t perform that action at this time.
0 commit comments