discourse/spec/system/bootstrap_error_pages_spec.rb

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

20 lines
580 B
Ruby
Raw Permalink Normal View History

# frozen_string_literal: true
describe "bootstrap_error_pages", type: :system do
before { SiteSetting.bootstrap_error_pages = true }
it "boots ember for non-existent route" do
visit "/foobar"
expect(page).not_to have_css("body.no-ember")
expect(page).to have_css("#site-logo")
expect(page).to have_css("div.page-not-found")
end
it "boots ember for non-existent topic" do
visit "/t/999999999999"
expect(page).not_to have_css("body.no-ember")
expect(page).to have_css("#site-logo")
expect(page).to have_css("div.page-not-found")
end
end