casper: Wait for logouts to complete.

This commit is contained in:
Umair Khan 2016-10-03 15:08:18 +05:00 committed by Tim Abbott
parent ac2007dd9b
commit 4fa9a786fc
1 changed files with 4 additions and 0 deletions

View File

@ -101,6 +101,10 @@ exports.then_log_out = function () {
casper.test.info('Logging out');
casper.click('li[title="Log out"] a');
});
casper.waitForSelector(".login-page-header", function () {
casper.test.info("Logged out");
});
};
// Put the specified string into the field_selector, then