diff options
Diffstat (limited to 'qa')
-rw-r--r-- | qa/qa/page/layout/performance_bar.rb | 16 |
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 |