# 如何测试新用户引导流程？

**URL:** https://meta.discourse.org/t/how-do-we-test-a-new-users-onboarding-flow/116776
**Category:** Support
**Created:** [2019年五月3日 15:47 UTC](https://meta.discourse.org/t/how-do-we-test-a-new-users-onboarding-flow/116776 "2019-05-03T15:47:00Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![debryc](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/debryc/32/101652_2.png) [@debryc](https://meta.discourse.org/u/debryc)
#### Post date: [2019年五月3日 15:47 UTC](https://meta.discourse.org/t/how-do-we-test-a-new-users-onboarding-flow/116776/1 "2019-05-03T15:47:00Z")

</div>

Currently, I’m revising a lot of our forum’s onboarding flow. In order to test it, I’m just creating (then deleting) a lot of test users. Is there an easier way to preview onboarding elements, like the welcome message the discourse narrative bot sends, without actually creating new accounts?

---

<div class="post-metadata">

### Author: ![supermathie](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/supermathie/32/507518_2.png) [@supermathie](https://meta.discourse.org/u/supermathie)
#### Post date: [2019年五月3日 15:50 UTC](https://meta.discourse.org/t/how-do-we-test-a-new-users-onboarding-flow/116776/2 "2019-05-03T15:50:58Z")

</div>

From the rails console you can use e.g.:

```plaintext
Jobs::SendDefaultWelcomeMessage.new.execute(user_id: User.find_by(username: 'bilbo_baggins').id)

```

to trigger the welcome message.

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [2019年五月4日 01:43 UTC](https://meta.discourse.org/t/how-do-we-test-a-new-users-onboarding-flow/116776/3 "2019-05-04T01:43:50Z")

</div>

I personally feel it’s better to create accounts to get the full experience and test it thoroughly. You can use plus addressing in email to synthesize a bunch of unique email addresses – then I delete the account after I’m done testing so it doesn’t leave any residue behind.

---

<div class="post-metadata">

### Author: ![debryc](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/debryc/32/101652_2.png) [@debryc](https://meta.discourse.org/u/debryc)
#### Post date: [2019年五月25日 19:46 UTC](https://meta.discourse.org/t/how-do-we-test-a-new-users-onboarding-flow/116776/4 "2019-05-25T19:46:08Z")

</div>

Update: I realized that what I really wanted was a way to preview the system\_messages.welcome\_user.text\_body\_template. Creating a new topic on Discourse brings up a wonderful compose field + preview so I know exactly what I’m typing turns into. I don’t see the same preview screen when I customize text, so I was struggling with knowing what messages new users would receive. Are there plans to add previews to the Customize Text interactions?

I can also just hack it together by composing my text for system\_messages.welcome\_user.text\_body\_template in a new topic, then copying and pasting it over. 😃

---

<div class="post-metadata">

### Author: ![zogstrip](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/zogstrip/32/512781_2.png) [@zogstrip](https://meta.discourse.org/u/zogstrip)
#### Post date: [2019年五月27日 19:43 UTC](https://meta.discourse.org/t/how-do-we-test-a-new-users-onboarding-flow/116776/5 "2019-05-27T19:43:19Z")

</div>

> [@debryc](#):
>
> Are there plans to add previews to the Customize Text interactions?

That would be very difficult to build as it would require that each translations has a “link” to where and how it is displayed.

---

<div class="post-metadata">

### Author: ![debryc](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/debryc/32/101652_2.png) [@debryc](https://meta.discourse.org/u/debryc)
#### Post date: [2019年五月27日 19:51 UTC](https://meta.discourse.org/t/how-do-we-test-a-new-users-onboarding-flow/116776/6 "2019-05-27T19:51:45Z")

</div>

> [@zogstrip](#):
>
> That would be very difficult to build as it would require that each translations has a “link” to where and how it is displayed.

That makes sense! I’ll go with this solution, then.

> [@debryc](#):
>
> I can also just hack it together by composing my text for system\_messages.welcome\_user.text\_body\_template in a new topic, then copying and pasting it over. 😃

---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [2019年六月26日 19:51 UTC](https://meta.discourse.org/t/how-do-we-test-a-new-users-onboarding-flow/116776/7 "2019-06-26T19:51:45Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
