Commit dd4fbf8a authored by Mark Lapierre's avatar Mark Lapierre

Remove checks for alert message and undo

They were recently changed, breaking the test. And they should be
tested in FE tests anyway.

Also change a block argument so a cop doesn't have to be disabled
parent 42d06dcd
......@@ -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