mirror of
https://github.com/discourse/discourse.git
synced 2025-05-21 18:12:32 +08:00
DEV: Remove legacy user menu (#21308)
This commit is contained in:
@ -172,24 +172,6 @@ RSpec.describe NotificationsController do
|
||||
)
|
||||
end
|
||||
|
||||
it "gets notifications list with unread high priority notifications at the top when navigation menu is legacy" do
|
||||
SiteSetting.navigation_menu = "legacy"
|
||||
|
||||
get "/notifications.json", params: { recent: true }
|
||||
|
||||
expect(response.status).to eq(200)
|
||||
|
||||
expect(response.parsed_body["notifications"].map { |n| n["id"] }).to eq(
|
||||
[
|
||||
unread_high_priority.id,
|
||||
notification.id,
|
||||
read_regular.id,
|
||||
unread_regular.id,
|
||||
read_high_priority.id,
|
||||
],
|
||||
)
|
||||
end
|
||||
|
||||
it "should not bump last seen reviewable in readonly mode" do
|
||||
user.update!(admin: true)
|
||||
|
||||
@ -286,16 +268,6 @@ RSpec.describe NotificationsController do
|
||||
)
|
||||
end
|
||||
|
||||
it "doesn't include reviewables when navigation menu is legacy" do
|
||||
SiteSetting.navigation_menu = "legacy"
|
||||
user.update!(admin: true)
|
||||
|
||||
get "/notifications.json", params: { recent: true }
|
||||
|
||||
expect(response.status).to eq(200)
|
||||
expect(response.parsed_body.key?("pending_reviewables")).to eq(false)
|
||||
end
|
||||
|
||||
it "doesn't include reviewables if the user can't see the review queue" do
|
||||
user.update!(admin: false)
|
||||
|
||||
|
Reference in New Issue
Block a user