Skip to content

Commit

Permalink
DEV: Amend misleading test regarding remaining votes (#186)
Browse files Browse the repository at this point in the history
The user being tested is an admin. Admins should by right be TL4 in production. The default number of votes for TL4 users is 10, not 4.
  • Loading branch information
Drenmi authored Mar 26, 2024
1 parent a95d953 commit f9654ee
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec/system/voting_spec.rb
Original file line number Diff line number Diff line change
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 f9654ee

Please sign in to comment.