diff options
Diffstat (limited to 'qa/qa/page/project/job/show.rb')
-rw-r--r-- | qa/qa/page/project/job/show.rb | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/qa/qa/page/project/job/show.rb b/qa/qa/page/project/job/show.rb index a1ad3a50be7..c1b2eca9fc2 100644 --- a/qa/qa/page/project/job/show.rb +++ b/qa/qa/page/project/job/show.rb @@ -5,7 +5,7 @@ module QA module Project module Job class Show < QA::Page::Base - include Component::CiBadgeLink + include Component::CiIcon view 'app/assets/javascripts/ci/job_details/components/log/log.vue' do element 'job-log-content' @@ -68,12 +68,14 @@ module QA end end - def has_locked_artifact? - has_element?('artifacts-locked-message-content') + def has_locked_artifact?(wait: 240) + wait_until(reload: true, max_duration: wait, sleep_interval: 1) do + has_element?('artifacts-locked-message-content') + end end # Artifact unlock is async and depends on queue size on target env - def has_unlocked_artifact?(wait: 120) + def has_unlocked_artifact?(wait: 240) wait_until(reload: true, max_duration: wait, sleep_interval: 1) do has_element?('artifacts-unlocked-message-content') end |