Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
AMOS Bot
moodle-install
Commits
a535004e
Commit
a535004e
authored
Sep 30, 2014
by
Dan Poltawski
Browse files
MDL-45893 behat: quick fix for usermenu logout button
(This needs revisiting properly - I am not an xpath expert)
parent
8f97a5c6
Changes
1
Hide whitespace changes
Inline
Side-by-side
auth/tests/behat/behat_auth.php
View file @
a535004e
...
...
@@ -94,6 +94,10 @@ class behat_auth extends behat_base {
// If it is needed, it expands the navigation bar with the 'Log out' link.
if
(
$clicknavbar
=
$this
->
get_expand_navbar_step
())
{
array_unshift
(
$steps
,
$clicknavbar
);
}
else
{
// Otherwise we need to expand the the user menu.
$xpath
=
"//div[@class='usermenu']//a[contains(concat(' ', @class, ' '), ' toggle-display ')]"
;
array_unshift
(
$steps
,
new
When
(
'I click on "'
.
$xpath
.
'" "xpath_element"'
));
}
return
$steps
;
...
...
Write
Preview
Supports
Markdown
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