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
4bfa51b1
Commit
4bfa51b1
authored
Sep 29, 2021
by
nwestbury
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add retry to load of artifacts page
parent
0335e0c4
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
3 deletions
+7
-3
qa/qa/page/project/artifact/show.rb
qa/qa/page/project/artifact/show.rb
+4
-2
qa/qa/specs/features/ee/browser_ui/geo/geo_replication_ci_job_log_artifacts_spec.rb
...owser_ui/geo/geo_replication_ci_job_log_artifacts_spec.rb
+3
-1
No files found.
qa/qa/page/project/artifact/show.rb
View file @
4bfa51b1
...
...
@@ -9,8 +9,10 @@ module QA
element
:directory_name_link
end
def
go_to_directory
(
name
)
click_element
(
:directory_name_link
,
directory_name:
name
)
def
go_to_directory
(
name
,
retry_attempts
=
1
)
retry_on_exception
(
max_attempts:
retry_attempts
,
reload:
true
,
sleep_interval:
10
)
do
click_element
(
:directory_name_link
,
directory_name:
name
)
end
end
end
end
...
...
qa/qa/specs/features/ee/browser_ui/geo/geo_replication_ci_job_log_artifacts_spec.rb
View file @
4bfa51b1
...
...
@@ -80,6 +80,8 @@ module QA
end
it
'replicates the job artifact to the secondary Geo site'
,
testcase:
'https://gitlab.com/gitlab-org/quality/testcases/-/quality/test_cases/1658'
do
artifact_page_retry_attempts
=
12
Runtime
::
Logger
.
debug
(
'Visiting the secondary Geo site'
)
Flow
::
Login
.
while_signed_in
(
address: :geo_secondary
)
do
...
...
@@ -107,7 +109,7 @@ module QA
end
Page
::
Project
::
Artifact
::
Show
.
perform
do
|
artifact
|
artifact
.
go_to_directory
(
@directory_name
)
artifact
.
go_to_directory
(
@directory_name
,
artifact_page_retry_attempts
)
expect
(
artifact
).
to
have_content
(
@file_name
)
end
end
...
...
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