mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FEATURE: add title tag for group detail page (#13702)
This commit is contained in:
@@ -33,7 +33,7 @@ describe RetrieveTitle do
|
||||
expect(title).to eq("Good Title")
|
||||
end
|
||||
|
||||
it "will prefer the title from an opengraph tag" do
|
||||
it "will prefer the title over the opengraph tag" do
|
||||
title = RetrieveTitle.extract_title(<<~HTML
|
||||
<html>
|
||||
<title>Good Title</title>
|
||||
|
||||
@@ -411,6 +411,7 @@ describe GroupsController do
|
||||
|
||||
expect(response.status).to eq(200)
|
||||
|
||||
expect(response.body).to have_tag "title", text: "#{group.name} - #{SiteSetting.title}"
|
||||
expect(response.body).to have_tag(:meta, with: {
|
||||
property: 'og:title', content: group.name
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user