Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
d4466ea9
Commit
d4466ea9
authored
Jul 09, 2019
by
Sanad Liaquat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Revert to using retry_until
parent
d920f705
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
4 deletions
+6
-4
app/views/layouts/header/_current_user_dropdown.html.haml
app/views/layouts/header/_current_user_dropdown.html.haml
+1
-1
qa/qa/page/main/menu.rb
qa/qa/page/main/menu.rb
+2
-2
qa/qa/specs/features/browser_ui/1_manage/login/log_in_spec.rb
...a/specs/features/browser_ui/1_manage/login/log_in_spec.rb
+3
-1
No files found.
app/views/layouts/header/_current_user_dropdown.html.haml
View file @
d4466ea9
...
...
@@ -24,4 +24,4 @@
-
if
current_user_menu?
(
:sign_out
)
%li
.divider
%li
=
link_to
_
(
"Sign out"
),
destroy_user_session_path
,
class:
"sign-out-link"
=
link_to
_
(
"Sign out"
),
destroy_user_session_path
,
class:
"sign-out-link
qa-sign-out-link
"
qa/qa/page/main/menu.rb
View file @
d4466ea9
...
...
@@ -5,7 +5,7 @@ module QA
module
Main
class
Menu
<
Page
::
Base
view
'app/views/layouts/header/_current_user_dropdown.html.haml'
do
element
:
user_sign_out_link
,
'link_to _("Sign out")'
# rubocop:disable QA/ElementWithPattern
element
:
sign_out_link
element
:settings_link
,
'link_to s_("CurrentUser|Settings")'
# rubocop:disable QA/ElementWithPattern
end
...
...
@@ -53,7 +53,7 @@ module QA
def
sign_out
within_user_menu
do
click_element
:
user_sign_out_link
,
Page
::
Main
::
Login
click_element
:
sign_out_link
end
end
...
...
qa/qa/specs/features/browser_ui/1_manage/login/log_in_spec.rb
View file @
d4466ea9
...
...
@@ -11,8 +11,10 @@ module QA
expect
(
menu
).
to
have_personal_area
end
Support
::
Retrier
.
retry_
on_exception
do
Support
::
Retrier
.
retry_
until
(
reload:
false
,
sleep_interval:
0.5
)
do
Page
::
Main
::
Menu
.
perform
(
&
:sign_out
)
Page
::
Main
::
Login
.
perform
(
&
:has_sign_in_tab?
)
end
Page
::
Main
::
Login
.
perform
do
|
form
|
...
...
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