Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
mahara
mahara
Commits
5d60cfe1
Commit
5d60cfe1
authored
May 27, 2015
by
Robert Lyon
Committed by
Gerrit Code Review
May 27, 2015
Browse files
Options
Browse Files
Download
Plain Diff
Merge "Add behat step "I log out""
parents
e4e83426
a979dc5a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
0 deletions
+12
-0
htdocs/testing/frameworks/behat/classes/BehatGeneral.php
htdocs/testing/frameworks/behat/classes/BehatGeneral.php
+12
-0
No files found.
htdocs/testing/frameworks/behat/classes/BehatGeneral.php
View file @
5d60cfe1
...
...
@@ -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
*
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment