From bdc53ffe02e2d43621e91d18c31f12811e98cdf4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Javi=20Mart=C3=ADn?= Date: Mon, 10 Mar 2025 22:48:40 +0100 Subject: [PATCH] Remove unneeded consecutive calls to `visit` This way we're 100% sure we won't have simultaneous requests which could cause flaky tests. Besides that, we make these tests slightly faster. --- spec/system/proposal_notifications_spec.rb | 2 -- 1 file changed, 2 deletions(-) diff --git a/spec/system/proposal_notifications_spec.rb b/spec/system/proposal_notifications_spec.rb index 53f763de7..057d5a425 100644 --- a/spec/system/proposal_notifications_spec.rb +++ b/spec/system/proposal_notifications_spec.rb @@ -185,7 +185,6 @@ describe "Proposal Notifications" do user3 = create(:user, votables: [proposal]) login_as(author) - visit root_path visit new_proposal_notification_path(proposal_id: proposal.id) @@ -287,7 +286,6 @@ describe "Proposal Notifications" do proposal = create(:proposal, author: author, voters: [user], followers: [user]) login_as(author) - visit root_path visit new_proposal_notification_path(proposal_id: proposal.id)