From 1984a1feeb64c5a36c6fcdd59ce0ac47b05ff366 Mon Sep 17 00:00:00 2001 From: Cillian O'Ruanaidh Date: Mon, 19 Jun 2023 18:19:09 +0100 Subject: [PATCH] Use more readable click_button helper instead of find and click in users_and_enterprises_spec.rb --- spec/system/admin/reports/users_and_enterprises_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/system/admin/reports/users_and_enterprises_spec.rb b/spec/system/admin/reports/users_and_enterprises_spec.rb index b9f8f0c0dc..858ed2ec6e 100644 --- a/spec/system/admin/reports/users_and_enterprises_spec.rb +++ b/spec/system/admin/reports/users_and_enterprises_spec.rb @@ -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",