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
02c681c8
Commit
02c681c8
authored
Aug 12, 2020
by
Sanad Liaquat (Personal)
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add retry to work around inconsisten UI issue
parent
3da460b8
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
4 deletions
+14
-4
qa/qa/page/base.rb
qa/qa/page/base.rb
+4
-0
qa/qa/page/project/settings/advanced.rb
qa/qa/page/project/settings/advanced.rb
+10
-4
No files found.
qa/qa/page/base.rb
View file @
02c681c8
...
@@ -44,6 +44,10 @@ module QA
...
@@ -44,6 +44,10 @@ module QA
wait_for_requests
wait_for_requests
end
end
def
click_body
page
.
find
(
"body"
).
click
end
def
wait_until
(
max_duration:
60
,
sleep_interval:
0.1
,
reload:
true
,
raise_on_failure:
true
)
def
wait_until
(
max_duration:
60
,
sleep_interval:
0.1
,
reload:
true
,
raise_on_failure:
true
)
Support
::
Waiter
.
wait_until
(
max_duration:
max_duration
,
sleep_interval:
sleep_interval
,
raise_on_failure:
raise_on_failure
)
do
Support
::
Waiter
.
wait_until
(
max_duration:
max_duration
,
sleep_interval:
sleep_interval
,
raise_on_failure:
raise_on_failure
)
do
yield
||
(
reload
&&
refresh
&&
false
)
yield
||
(
reload
&&
refresh
&&
false
)
...
...
qa/qa/page/project/settings/advanced.rb
View file @
02c681c8
...
@@ -42,10 +42,16 @@ module QA
...
@@ -42,10 +42,16 @@ module QA
end
end
def
transfer_project!
(
project_name
,
namespace
)
def
transfer_project!
(
project_name
,
namespace
)
# Retry added here due to seldom seen inconsistent UI state issue:
# https://gitlab.com/gitlab-org/gitlab/-/issues/231242
retry_on_exception
do
click_body
expand_select_list
expand_select_list
# Workaround for a failure to search when there are no spaces around the /
# Workaround for a failure to search when there are no spaces around the /
# https://gitlab.com/gitlab-org/gitlab/-/issues/218965
# https://gitlab.com/gitlab-org/gitlab/-/issues/218965
select_transfer_option
(
namespace
.
gsub
(
/([^\s])\/([^\s])/
,
'\1 / \2'
))
select_transfer_option
(
namespace
.
gsub
(
/([^\s])\/([^\s])/
,
'\1 / \2'
))
end
click_element
(
:transfer_button
)
click_element
(
:transfer_button
)
fill_confirmation_text
(
project_name
)
fill_confirmation_text
(
project_name
)
click_confirm_button
click_confirm_button
...
...
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