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
87fefd64
Commit
87fefd64
authored
Feb 12, 2019
by
GitLab Bot
Browse files
Options
Browse Files
Download
Plain Diff
Automatic merge of gitlab-org/gitlab-ce master
parents
e0f91540
a9c4eaf9
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
28 additions
and
11 deletions
+28
-11
qa/qa/page/base.rb
qa/qa/page/base.rb
+16
-1
qa/qa/page/group/show.rb
qa/qa/page/group/show.rb
+9
-7
qa/qa/page/main/menu.rb
qa/qa/page/main/menu.rb
+1
-1
qa/qa/page/main/sign_up.rb
qa/qa/page/main/sign_up.rb
+1
-1
qa/qa/page/project/web_ide/edit.rb
qa/qa/page/project/web_ide/edit.rb
+1
-1
No files found.
qa/qa/page/base.rb
View file @
87fefd64
...
...
@@ -24,7 +24,7 @@ module QA
end
end
def
with_retry
(
max_attempts:
3
,
reload:
false
)
def
retry_until
(
max_attempts:
3
,
reload:
false
)
attempts
=
0
while
attempts
<
max_attempts
...
...
@@ -39,6 +39,21 @@ module QA
false
end
def
retry_on_exception
(
max_attempts:
3
,
reload:
false
,
sleep_interval:
0.0
)
attempts
=
0
begin
yield
rescue
StandardError
sleep
sleep_interval
refresh
if
reload
attempts
+=
1
retry
if
attempts
<
max_attempts
raise
end
end
def
scroll_to
(
selector
,
text:
nil
)
page
.
execute_script
<<~
JS
var elements = Array.from(document.querySelectorAll('
#{
selector
}
'));
...
...
qa/qa/page/group/show.rb
View file @
87fefd64
...
...
@@ -45,15 +45,17 @@ module QA
private
def
select_kind
(
kind
)
within_element
(
:new_project_or_subgroup_dropdown
)
do
# May need to click again because it is possible to click the button quicker than the JS is bound
wait
(
reload:
false
)
do
click_element
:new_project_or_subgroup_dropdown_toggle
retry_on_exception
(
sleep_interval:
1.0
)
do
within_element
(
:new_project_or_subgroup_dropdown
)
do
# May need to click again because it is possible to click the button quicker than the JS is bound
wait
(
reload:
false
)
do
click_element
:new_project_or_subgroup_dropdown_toggle
has_element?
(
kind
)
end
has_element?
(
kind
)
end
click_element
kind
click_element
kind
end
end
end
end
...
...
qa/qa/page/main/menu.rb
View file @
87fefd64
...
...
@@ -57,7 +57,7 @@ module QA
end
def
go_to_profile_settings
with_retry
(
reload:
false
)
do
retry_until
(
reload:
false
)
do
within_user_menu
do
click_link
'Settings'
end
...
...
qa/qa/page/main/sign_up.rb
View file @
87fefd64
...
...
@@ -23,7 +23,7 @@ module QA
check_element
:new_user_accept_terms
if
has_element?
(
:new_user_accept_terms
)
signed_in
=
with_retry
do
signed_in
=
retry_until
do
click_element
:new_user_register_button
Page
::
Main
::
Menu
.
act
{
has_personal_area?
}
...
...
qa/qa/page/project/web_ide/edit.rb
View file @
87fefd64
...
...
@@ -80,7 +80,7 @@ module QA
# Retry the attempt to click :commit_button just in case part of the
# animation is still in process even when the buttons have the
# expected visibility.
commit_success_msg_shown
=
with_retry
do
commit_success_msg_shown
=
retry_until
do
click_element
:commit_button
wait
(
reload:
false
)
do
...
...
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