Skip to content

Commit

Permalink
converted failing cases to tests
Browse files Browse the repository at this point in the history
  • Loading branch information
dakshvar22 committed Oct 13, 2023
1 parent 8923b11 commit 13c5562
Show file tree
Hide file tree
Showing 3 changed files with 48 additions and 0 deletions.
17 changes: 17 additions & 0 deletions tests/e2e/digressions/calm_to_dm1_to_calm.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
test_cases:
- test_case: User is in a calm skill, switches to dm1 skill and the bot switches back to CALM skill
steps:
- user: schedule a recurring payment
- utter: utter_ask_recurrent_payment_type
- user: standing order
- utter: utter_ask_recipient
- user: wait before that send 20 dollars to a friend
- utter: utter_ask_transfer_money_form_AA_CONTINUE_FORM
- user: /affirm
- utter: utter_ask_transfer_money_form_PERSON
- user: john jacob
- utter: utter_ask_transfer_money_form_zz_confirm_form
- user: /affirm
- utter: utter_transfer_complete
- utter: utter_flow_continue_interrupted
- utter: utter_ask_recipient
11 changes: 11 additions & 0 deletions tests/e2e/digressions/dm1_to_calm_slot_validation_fails.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
test_cases:
- test_case: b80b239dd61b4022aee2ec825c74d656
steps:
- user: transfer money
- utter: utter_ask_transfer_money_form_AA_CONTINUE_FORM
- user: /affirm
- utter: utter_ask_transfer_money_form_PERSON
- user: evan oslo
- utter: utter_ask_transfer_money_form_amount-of-money
- user: actually I might have to do a recurrent transfer to him
- utter: utter_ask_recurrent_payment_type
20 changes: 20 additions & 0 deletions tests/e2e/digressions/dm1_to_calm_to_dm1.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
test_cases:
- test_case: User is in a DM1 skill, switches to CALM skill, CALM skill is cancelled and the bot switches back to DM1 skill
steps:
- user: transfer money
- utter: utter_ask_transfer_money_form_AA_CONTINUE_FORM
- user: /affirm
- utter: utter_ask_transfer_money_form_PERSON
- user: katy parrow
- utter: utter_ask_transfer_money_form_amount-of-money
- user: |-
actually I might have to pay her every month, can we setup a scheduled
payment?
- utter: utter_ask_recurrent_payment_type
- user: she stays in germany so an international transfer
- utter: utter_invalid_recurrent_payment_type
- utter: utter_ask_recurrent_payment_type
- user: ahh nevermind then
- utter: utter_flow_cancelled_rasa
- utter: utter_flow_continue_interrupted
- utter: utter_ask_transfer_money_form_amount-of-money

0 comments on commit 13c5562

Please sign in to comment.