I\'m trying to test the login page on my site using protractor.
If you log in incorrectly, the site displays a \"toast\" message that pops up for 5 seconds, then dis
you should wait for your toast displayed then do other steps browser.wait(function() { return $('.toaster').isDisplayed(); }, 20000);