Guest User

Untitled

a guest
Mar 16th, 2018
264
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.83 KB | None | 0 0
  1. Feature: Flexmail
  2. As a Wagneer
  3. I want to be able to set up email configs
  4. So that we can create emailing forms
  5.  
  6. Background:
  7. Given I log in as Joe User
  8. And I create Cardtype card "Testimony"
  9. And I create card "Testimony+*type+*send" with content "[[Testemailconfig]]"
  10. And I create card "Testimony+*tform" with content
  11. """
  12. {{+Name}} {{+Email}} {{+Testimony}} {{+recipients}}
  13. """
  14.  
  15. And I create Email card "Testemailconfig"
  16. And I create Search card "Testemailconfig+*to" with content
  17. """
  18. {"referred_to_by":"{{_self+recipients|naked}}"}
  19. """
  20. And I create Phrase card "Testemailconfig+*from" with content "{{_self+email|naked}}"
  21. And I create Phrase card "Testemailconfig+*subject" with content "Subjectimus"
  22. And I create Phrase card "Testemailconfig+*bcc"
  23. And I create Basic card "Testemailconfig+*message" with content
  24. """
  25. Pleistocles,
  26. {{_self+Name|naked}} thinks you've got it all wrong. He says:
  27. {{_self+*message}}
  28.  
  29. buena,
  30. Thaddeus
  31. """
  32.  
  33. And I create Phrase card "A+email" with content "tacitus@test.com"
  34. And I create Phrase card "B+email" with content "argumus@test.com"
  35. And I create Pointer card "List1" with content "[[A+email]]\n[[B+email]]"
  36.  
  37.  
  38. Scenario: Submitting a new Testimony
  39. When I create Testimony card "" with plusses:
  40. |Name|Email|Testimony|recipients|
  41. |Lee|lee@user.net|This is outrageous|List1|
  42. Then "tacitus@test.com" should receive 1 email
  43. And "argumus@test.com" should receive 1 email
  44. When "argumus@test.com" opens the email with subject "Subjectimus"
  45. And it should be from "lee@user.net"
  46. Then He should see "Pleistocles" in the email
  47. And He should see "Lee" in the email
  48. And He should see "This is outrageous" in the email
Add Comment
Please, Sign In to add comment