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.
This commit is contained in:
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…
x
Reference in New Issue
Block a user