Commit a979dc5a authored by Son Nguyen's avatar Son Nguyen

Add behat step "I log out"

Change-Id: I20ab168e2e12ecf83cbc5c035e16e079fd47ed21
parent 10a3d7a3
......@@ -61,6 +61,18 @@ class BehatGeneral extends BehatBase {
);
}
/**
* Log out of Mahara
*
* @Given /^I log out$/
*/
public function i_logout() {
return array(
new Given('I wait until the page is ready'),
new When('I follow "Logout" in the "//div[@id=\'header\']//li[contains(concat(\' \', normalize-space(@class), \' \'), \' btn-logout \')]" "xpath_element"'),
);
}
/**
* Follows the page redirection. Use this step after any action that shows a message and waits for a redirection
*
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment