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
a979dc5a
Commit
a979dc5a
authored
May 26, 2015
by
Son Nguyen
1
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add behat step "I log out"
Change-Id: I20ab168e2e12ecf83cbc5c035e16e079fd47ed21
parent
10a3d7a3
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 @
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
*
...
...
Ghost User
@ghost
mentioned in commit
d950f7e5
·
Jun 23, 2015
mentioned in commit
d950f7e5
mentioned in commit d950f7e5499622f61a7ce2db0d68344f02d94ee0
Toggle commit list
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