mirror of
https://github.com/discourse/discourse.git
synced 2025-05-29 00:37:44 +08:00
UX: Upgrade to fontawesome 6.6.0 (#28778)
This upgrade is designed to be fully backwards-compatible. Any icon names which have changed will be automatically remapped to the new name. For now, this will happen silently. In future, once core & official themes/plugins have been updated, we will start raising deprecation errors to help theme/plugin authors update their code. Extracted from https://github.com/discourse/discourse/pull/28715 Announcement at https://meta.discourse.org/t/were-upgrading-our-icons-to-font-awesome-6/325349 Co-authored-by: awesomerobot <kris.aubuchon@discourse.org>
This commit is contained in:
@ -93,7 +93,7 @@ RSpec.describe SvgSpriteController do
|
||||
|
||||
data = response.parsed_body
|
||||
expect(data.length).to eq(200)
|
||||
expect(data[0]["id"]).to eq("ad")
|
||||
expect(data[0]["id"]).to eq("0")
|
||||
end
|
||||
|
||||
it "should filter" do
|
||||
@ -113,12 +113,12 @@ RSpec.describe SvgSpriteController do
|
||||
|
||||
get "/svg-sprite/picker-search"
|
||||
data = response.parsed_body
|
||||
beer_icon = response.parsed_body.find { |i| i["id"] == "beer" }
|
||||
beer_icon = response.parsed_body.find { |i| i["id"] == "beer-mug-empty" }
|
||||
expect(beer_icon).to be_present
|
||||
|
||||
get "/svg-sprite/picker-search", params: { only_available: "true" }
|
||||
data = response.parsed_body
|
||||
beer_icon = response.parsed_body.find { |i| i["id"] == "beer" }
|
||||
beer_icon = response.parsed_body.find { |i| i["id"] == "beer-mug-empty" }
|
||||
expect(beer_icon).to be nil
|
||||
expect(data.length).to eq(200)
|
||||
end
|
||||
|
Reference in New Issue
Block a user