mirror of
https://github.com/discourse/discourse.git
synced 2025-05-30 15:28:37 +08:00
FEATURE: revamped wizard (#17477)
* FEATURE: revamped wizard * UX: Wizard redesign (#17381) * UX: Step 1-2 * swap out images * UX: Finalize all steps * UX: mobile * UX: Fix test * more test * DEV: remove unneeded wizard components * DEV: fix wizard tests * DEV: update rails tests for new wizard * Remove empty hbs files that were created because of rebase * Fixes for rebase * Fix wizard image link * More rebase fixes * Fix rails tests * FIX: Update preview for new color schemes: (#17481) * UX: make layout more responsive, update images * fix typo * DEV: move discourse logo svg to template only component * DEV: formatting improvements * Remove unneeded files * Add tests for privacy step * Fix banner image height for step "ready" Co-authored-by: Jordan Vidrine <30537603+jordanvidrine@users.noreply.github.com> Co-authored-by: awesomerobot <kris.aubuchon@discourse.org>
This commit is contained in:
@ -29,15 +29,15 @@ describe StepsController do
|
||||
|
||||
it "raises an error if the wizard is disabled" do
|
||||
SiteSetting.wizard_enabled = false
|
||||
put "/wizard/steps/contact.json", params: {
|
||||
put "/wizard/steps/introduction.json", params: {
|
||||
fields: { contact_email: "eviltrout@example.com" }
|
||||
}
|
||||
expect(response).to be_forbidden
|
||||
end
|
||||
|
||||
it "updates properly if you are staff" do
|
||||
put "/wizard/steps/contact.json", params: {
|
||||
fields: { contact_email: "eviltrout@example.com" }
|
||||
put "/wizard/steps/introduction.json", params: {
|
||||
fields: { title: "FooBar", default_locale: SiteSetting.default_locale, contact_email: "eviltrout@example.com" }
|
||||
}
|
||||
|
||||
expect(response.status).to eq(200)
|
||||
@ -45,7 +45,7 @@ describe StepsController do
|
||||
end
|
||||
|
||||
it "returns errors if the field has them" do
|
||||
put "/wizard/steps/contact.json", params: {
|
||||
put "/wizard/steps/introduction.json", params: {
|
||||
fields: { contact_email: "not-an-email" }
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user