DEV: Remove legacy user menu (#21308)

This commit is contained in:
Keegan George
2023-05-17 09:16:42 -07:00
committed by GitHub
parent 0c1efecddd
commit 082821c754
45 changed files with 148 additions and 2422 deletions

View File

@ -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)