mirror of
https://github.com/discourse/discourse.git
synced 2026-08-11 13:35:20 -05:00
This switches the signup/login UI to the full page experience by default. This has been in use by many sites for multiple months and we have ironed out many fixes in the meantime. The `full_page_login` setting is also marked for removal in about 1.5mths, by the end of April 2025.
20 lines
489 B
Ruby
20 lines
489 B
Ruby
# frozen_string_literal: true
|
|
|
|
RSpec.describe ProblemCheck::FullPageLoginCheck do
|
|
let(:check) { described_class.new }
|
|
|
|
describe "#call" do
|
|
context "when full_page_login is enabled" do
|
|
before { SiteSetting.full_page_login = true }
|
|
|
|
it { expect(check).to be_chill_about_it }
|
|
end
|
|
|
|
context "when full_page_login is enabled" do
|
|
before { SiteSetting.full_page_login = false }
|
|
|
|
it { expect(check).to have_a_problem.with_priority("low") }
|
|
end
|
|
end
|
|
end
|