fix: article_spec login twice to fix flaky test

This commit is contained in:
Philipp Rothmann 2023-02-24 13:10:41 +01:00
parent dfe8beae2c
commit 237ef5d38b

View file

@ -8,7 +8,10 @@ feature ArticlesController do
before { login user }
describe ':index', js: true do
before { visit supplier_articles_path(supplier_id: supplier.id) }
before {
login user
visit supplier_articles_path(supplier_id: supplier.id)
}
it 'can visit supplier articles path' do
expect(page).to have_content(supplier.name)