MOBILE-3833 behat: Improve loading more items
Without using a smooth scroll, the scroll jumps straight to the loader and sometimes it makes tests fail. Using smooth scrolling is closer to what a user would do and it fixes this problem.main
parent
a3910f141f
commit
82fdde0482
|
@ -617,7 +617,7 @@
|
|||
return 'ERROR: All items are already loaded';
|
||||
}
|
||||
|
||||
infiniteLoading.scrollIntoView();
|
||||
infiniteLoading.scrollIntoView({ behavior: 'smooth' });
|
||||
|
||||
// Wait 100ms
|
||||
await new Promise(resolve => setTimeout(resolve, 100));
|
||||
|
|
Loading…
Reference in New Issue