mirror of
https://github.com/discourse/discourse.git
synced 2024-11-29 22:33:45 +08:00
74f1a79d36
In this PR we started redirecting to the guide page after the wizard - https://github.com/discourse/discourse/pull/26696 The guide will require rebrand and until it is ready, we should redirect to `/latest`
19 lines
468 B
Ruby
19 lines
468 B
Ruby
# frozen_string_literal: true
|
|
|
|
describe "Wizard", type: :system do
|
|
fab!(:admin)
|
|
fab!(:topic) { Fabricate(:topic, title: "admin guide with 15 chars") }
|
|
fab!(:post) { Fabricate(:post, topic: topic) }
|
|
|
|
let(:wizard_page) { PageObjects::Pages::Wizard.new }
|
|
|
|
before { sign_in(admin) }
|
|
|
|
it "redirects to latest when wizard is completed" do
|
|
visit("/wizard/steps/ready")
|
|
wizard_page.click_jump_in
|
|
|
|
expect(page).to have_current_path("/latest")
|
|
end
|
|
end
|