mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-24 20:36:49 +00:00
Use more readable click_button helper instead of find and click in users_and_enterprises_spec.rb
This commit is contained in:
committed by
Konrad
parent
40b0bfb433
commit
1984a1feeb
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user