mirror of
https://github.com/discourse/discourse.git
synced 2025-05-30 07:11:34 +08:00
FEATURE: Show first notification tip to all users (#22258)
It used to show only to users with trust level 0 or 1 and users who signed up in the past week.
This commit is contained in:
@ -2208,22 +2208,6 @@ RSpec.describe User do
|
||||
end
|
||||
end
|
||||
|
||||
describe "when user is trust level 2" do
|
||||
it "should return the right value" do
|
||||
user.update!(trust_level: TrustLevel[2])
|
||||
|
||||
expect(user.read_first_notification?).to eq(true)
|
||||
end
|
||||
end
|
||||
|
||||
describe "when user is an old user" do
|
||||
it "should return the right value" do
|
||||
user.update!(first_seen_at: 1.year.ago)
|
||||
|
||||
expect(user.read_first_notification?).to eq(true)
|
||||
end
|
||||
end
|
||||
|
||||
describe "when user skipped new user tips" do
|
||||
it "should return the right value" do
|
||||
user.user_option.update!(skip_new_user_tips: true)
|
||||
|
Reference in New Issue
Block a user