Commit d950f7e5 authored by Son Nguyen's avatar Son Nguyen Committed by Robert Lyon
Browse files

Add behat step "I log out"

Change-Id: I20ab168e2e12ecf83cbc5c035e16e079fd47ed21
(cherry picked from commit a979dc5a)
parent 07ce9b25
......@@ -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