mirror of https://github.com/zulip/zulip.git
fcebf2905e
Waiting till DOMContentLoaded event is triggered helps avoid flakes since puppeteer is very fast and starts doing another task before everything on the page is loaded. Adding this to log_in function as almost all tests depend on this which leads to flaky tests if the other parts of tests just start without even the page being loaded. One example this commit helps is for the test `02-site.js` which is dependent on a function that runs some jquery on the site. But because of the page not being loaded, we miss jquery and thus the test fails. `02-site.js` and related code is added in the next commit. Co-authored-by: Priyank Patel <priyankp390@gmail.com> |
||
---|---|---|
.. | ||
common.js |