Commit 5d60cfe1 authored by Robert Lyon's avatar Robert Lyon Committed by Gerrit Code Review

Merge "Add behat step "I log out""

parents e4e83426 a979dc5a
......@@ -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