fix: article_spec login twice to fix flaky test
This commit is contained in:
parent
dfe8beae2c
commit
237ef5d38b
1 changed files with 4 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue