From 237ef5d38bd05915f1718ffb364f1ac6c9be3028 Mon Sep 17 00:00:00 2001 From: Philipp Rothmann Date: Fri, 24 Feb 2023 13:10:41 +0100 Subject: [PATCH] fix: article_spec login twice to fix flaky test --- spec/integration/articles_spec.rb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/spec/integration/articles_spec.rb b/spec/integration/articles_spec.rb index 638b1c0a..b6a3a243 100644 --- a/spec/integration/articles_spec.rb +++ b/spec/integration/articles_spec.rb @@ -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)