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.
This commit is contained in:
Javi Martín
2025-03-10 22:48:40 +01:00
parent f06bf6b967
commit bdc53ffe02

View File

@@ -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)