mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-03-21 05:09:15 +00:00
Remove unnecessary before action
Each context has different setup and needs to load the page after setup.
This commit is contained in:
@@ -35,11 +35,9 @@ RSpec.describe 'As an enterprise user, I can browse my products' do
|
||||
let!(:p1) { create(:product, name: "Product1") }
|
||||
let!(:p2) { create(:product, name: "Product2") }
|
||||
|
||||
before do
|
||||
visit admin_products_url
|
||||
end
|
||||
|
||||
it "displays a list of products" do
|
||||
visit admin_products_path
|
||||
|
||||
within ".products" do
|
||||
# displays table header
|
||||
expect(page).to have_selector "th", text: "Name"
|
||||
|
||||
Reference in New Issue
Block a user