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:
Krzysztof Kotlarek 2025-06-05 08:06:56 +08:00 committed by GitHub
parent 1e8f704db2
commit 2caa04329b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 1 deletions

View File

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