Use more readable click_button helper instead of find and click in users_and_enterprises_spec.rb

This commit is contained in:
Cillian O'Ruanaidh
2023-06-19 18:19:09 +01:00
committed by Konrad
parent 40b0bfb433
commit 1984a1feeb

View File

@@ -13,7 +13,7 @@ describe "Users & Enterprises reports" do
end
it "displays the report" do
find("[type='submit']").click
click_button 'Go'
expect(page.find("table.report__table thead tr").text).to have_content([
"USER",