Files
awx/awx/ui/test/e2e/commands/logout.js
2019-04-23 15:45:27 -04:00

11 lines
311 B
JavaScript

/**
* Logout from the current session by clicking on the power off button on the
* navigation menu.
*/
exports.command = function logout () {
const logoutButton = '.at-Layout-topNav i.fa-power-off';
this
.findThenClick(logoutButton, 'css')
.waitForElementPresent('#login-button');
};