FEATURE: Separate base and heading font site_settings (#10807)

Allows site administrators to pick different fonts for headings in the wizard and in their site settings. Also correctly displays the header logos in wizard previews.
This commit is contained in:
Penar Musaraj
2020-10-05 13:40:41 -04:00
committed by GitHub
parent bdfb370f19
commit a4356b99af
25 changed files with 171 additions and 105 deletions

View File

@ -168,12 +168,13 @@ describe Wizard::StepUpdater do
end
context "fonts step" do
it "updates the font" do
updater = wizard.create_updater('fonts', font_previews: 'open_sans')
it "updates fonts" do
updater = wizard.create_updater('fonts', body_font: 'open_sans', heading_font: 'oswald')
updater.update
expect(updater.success?).to eq(true)
expect(wizard.completed_steps?('fonts')).to eq(true)
expect(SiteSetting.base_font).to eq('open_sans')
expect(SiteSetting.heading_font).to eq('oswald')
end
end