summaryrefslogtreecommitdiff
path: root/qa
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2020-01-06 21:07:43 +0000
committerGitLab Bot <gitlab-bot@gitlab.com>2020-01-06 21:07:43 +0000
commit015663b70f1bcdae4483e38c2beac884f92da5b8 (patch)
tree6dd5a59c7f9a27c3cca22801ca30bf3dd8f9b401 /qa
parent5eb11b697d7ee280b0b5c2ff9a1850a3b5e9b7e3 (diff)
downloadgitlab-ce-015663b70f1bcdae4483e38c2beac884f92da5b8.tar.gz
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'qa')
-rw-r--r--qa/qa/page/layout/performance_bar.rb16
1 files changed, 11 insertions, 5 deletions
diff --git a/qa/qa/page/layout/performance_bar.rb b/qa/qa/page/layout/performance_bar.rb
index 79e4d3edce0..dbfcf908610 100644
--- a/qa/qa/page/layout/performance_bar.rb
+++ b/qa/qa/page/layout/performance_bar.rb
@@ -9,11 +9,12 @@ module QA
end
view 'app/assets/javascripts/performance_bar/components/detailed_metric.vue' do
- element :performance_bar_detailed_metric
+ element :detailed_metric_content
end
view 'app/assets/javascripts/performance_bar/components/request_selector.vue' do
- element :performance_bar_request
+ element :request_dropdown_option
+ element :request_dropdown
end
def has_performance_bar?
@@ -21,13 +22,18 @@ module QA
end
def has_detailed_metrics?
- all_elements(:performance_bar_detailed_metric).all? do |metric|
- metric.has_text?(%r{\d+})
+ retry_until(sleep_interval: 1) do
+ all_elements(:detailed_metric_content).all? do |metric|
+ metric.has_text?(%r{\d+})
+ end
end
end
def has_request_for?(path)
- has_element?(:performance_bar_request, text: path)
+ click_element(:request_dropdown)
+ retry_until(sleep_interval: 1) do
+ has_element?(:request_dropdown_option, text: path)
+ end
end
end
end