Commit 07fc5725 authored by Rémy Coutable's avatar Rémy Coutable

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

Signed-off-by: default avatarRémy Coutable <remy@rymai.me>
parent 4a47e0b5
# frozen_string_literal: true
require 'securerandom'
module QA
module Page
module Project
......@@ -60,7 +62,7 @@ module QA
def duplicate_dashboard(save_as = 'test_duplication.yml', commit_option = 'Commit to master branch')
click_element :dashboards_filter_dropdown
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
within('.modal-content') { click_button(class: 'btn-success') }
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