Skip to content

Commit

Permalink
Add main_email_form_step to wizards preview
Browse files Browse the repository at this point in the history
  • Loading branch information
rnestler committed Jun 19, 2024
1 parent 3d70c08 commit d9aa620
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions spec/components/previews/wizards_preview.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,13 @@ def choose_sektion_step_with_alert(wizards_preview_wizard: {})
end
end

def main_email_form_step(wizards_preview_wizard: {})
wizard = build_wizard(Wizards::Steps::MainEmail, wizards_preview_wizard)
render_wrapped(wizard) do |view_ctx, step|
view_ctx.content_tag(:p, step.email, class: 'alert alert-info') if step.email
end
end

private

def render_wrapped(wizard)
Expand Down

0 comments on commit d9aa620

Please sign in to comment.