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:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user