Commit a80d98b4 authored by Dan Davison's avatar Dan Davison

Merge branch '228597-fix-flaky-end-to-end-test' into 'master'

Make sure end-to-end test uses unique filename in metrics test

Closes #228597

See merge request gitlab-org/gitlab!36846
parents e5a91ad3 07fc5725
# frozen_string_literal: true # frozen_string_literal: true
require 'securerandom'
module QA module QA
module Page module Page
module Project module Project
...@@ -60,7 +62,7 @@ module QA ...@@ -60,7 +62,7 @@ module QA
def duplicate_dashboard(save_as = 'test_duplication.yml', commit_option = 'Commit to master branch') def duplicate_dashboard(save_as = 'test_duplication.yml', commit_option = 'Commit to master branch')
click_element :dashboards_filter_dropdown click_element :dashboards_filter_dropdown
click_on 'Duplicate dashboard' click_on 'Duplicate dashboard'
fill_element :duplicate_dashboard_filename_field, save_as fill_element :duplicate_dashboard_filename_field, "#{SecureRandom.hex(8)}-#{save_as}"
choose commit_option choose commit_option
within('.modal-content') { click_button(class: 'btn-success') } within('.modal-content') { click_button(class: 'btn-success') }
end end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment