fix: article_spec login twice to fix flaky test
Some checks failed
continuous-integration/drone/push Build is failing
Some checks failed
continuous-integration/drone/push Build is failing
This commit is contained in:
parent
0b7135337c
commit
be3eb7d966
1 changed files with 4 additions and 1 deletions
|
@ -8,7 +8,10 @@ feature ArticlesController do
|
||||||
before { login user }
|
before { login user }
|
||||||
|
|
||||||
describe ':index', js: true do
|
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
|
it 'can visit supplier articles path' do
|
||||||
expect(page).to have_content(supplier.name)
|
expect(page).to have_content(supplier.name)
|
||||||
|
|
Loading…
Add table
Reference in a new issue