Skip to content

Commit

Permalink
DEV: Amend misleading test regarding remaining votes
Browse files Browse the repository at this point in the history
  • Loading branch information
Drenmi committed Mar 26, 2024
1 parent a95d953 commit 658c0c8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec/system/voting_spec.rb
Expand Up @@ -2,7 +2,7 @@

RSpec.describe "Voting", type: :system, js: true do
fab!(:user)
fab!(:admin)
fab!(:admin) { Fabricate(:admin, trust_level: TrustLevel[4]) }
fab!(:category1) { Fabricate(:category) }
fab!(:category2) { Fabricate(:category) }
fab!(:topic1) { Fabricate(:topic, category: category1) }
Expand Down Expand Up @@ -48,7 +48,7 @@

expect(topic_page.vote_count).to have_text("0")
topic_page.vote
expect(topic_page.vote_popup).to have_text("You have 3 votes left, see your votes")
expect(topic_page.vote_popup).to have_text("You have 9 votes left, see your votes")
expect(topic_page.vote_count).to have_text("1")
topic_page.click_vote_popup_activity

Expand Down

0 comments on commit 658c0c8

Please sign in to comment.