fix: article_spec login twice to fix flaky test
continuous-integration/drone/push Build is failing Details

Philipp Rothmann 2023-02-24 13:10:41 +01:00
parent 0b7135337c
commit be3eb7d966
1 changed files with 4 additions and 1 deletions

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)