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
Noel De Martin 2022-01-25 17:39:01 +01:00
parent a3910f141f
commit 82fdde0482
1 changed files with 1 additions and 1 deletions

View File

@ -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));