Commit 013e923e authored by Mark Lapierre's avatar Mark Lapierre

Merge branch 'ml-qa-fix-file-template-test' into 'master'

Fix E2E file templates test

Closes #33852

See merge request gitlab-org/gitlab!18432
parents c8bd099c dd4fbf8a
......@@ -57,12 +57,10 @@ module QA
@project.visit!
Page::Project::Show.perform(&:create_new_file!)
Page::File::Form.perform do |page| # rubocop:disable QA/AmbiguousPageObjectName
page.select_template template[:file_name], template[:name]
Page::File::Form.perform do |form|
form.select_template template[:file_name], template[:name]
end
expect(page).to have_content('Template applied')
expect(page).to have_button('Undo')
expect(page).to have_content(content[0..100])
Page::File::Form.perform(&:commit_changes)
......
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