DEV: docs index spec working with core themes (#210)
With core themes, the first theme does not have to be the default one. Correlated draft PR with core themes: https://github.com/discourse/discourse/pull/32681
This commit is contained in:
parent
1e8f704db2
commit
2caa04329b
|
@ -51,7 +51,9 @@ describe "Discourse Docs | Index", type: :system do
|
|||
|
||||
context "when the theme modifier serialize_topic_excerpts is true" do
|
||||
before do
|
||||
ThemeModifierSet.find_by(theme_id: Theme.first.id).update!(serialize_topic_excerpts: true)
|
||||
ThemeModifierSet.find_by(theme_id: SiteSetting.default_theme_id).update!(
|
||||
serialize_topic_excerpts: true,
|
||||
)
|
||||
Theme.clear_cache!
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue