Skip to content

Commit

Permalink
update e2e test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
Tawakalt committed Nov 28, 2024
1 parent c04fcb9 commit e396ad9
Show file tree
Hide file tree
Showing 2 changed files with 60 additions and 1 deletion.
32 changes: 32 additions & 0 deletions e2e_tests_with_assertions/passing/happy_path/user_orders_pizza.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,21 @@ test_cases:
value: 1234 5678 9012 3456
- bot_uttered:
utter_name: utter_execute_payment
- flow_completed:
flow_id: order_pizza
- slot_was_set:
- name: pizza
value: null
- name: num_pizza
value: null
- name: address
value: null
- name: card_details
value: null
- name: payment_option
value: null
- slot_was_not_set:
- name: confirmation_order

- test_case: user_orders_pizza_stating_which_type_and_pays_with_points
steps:
Expand Down Expand Up @@ -117,4 +132,21 @@ test_cases:
utter_name: utter_execute_payment
- flow_completed:
flow_id: order_pizza
- slot_was_set:
- name: pizza
value: null
- name: num_pizza
value: null
- name: address
value: null
- name: card_details
value: null
- name: payment_option
value: null
- name: user_name
value: null
- name: user_password
value: null
- slot_was_not_set:
- name: confirmation_order

Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,15 @@ test_cases:
value: true
- bot_uttered:
utter_name: utter_verify_account_success
- slot_was_set:
- name: verify_account_email
value: null
- name: verify_account_confirmation
value: null
- name: verify_account_sufficient_california_income
value: null
- slot_was_not_set:
- name: based_in_california

- test_case: Verify account for California resident with insufficient income
steps:
Expand Down Expand Up @@ -66,6 +75,15 @@ test_cases:
value: false
- bot_uttered:
utter_name: utter_ca_income_insufficient
- slot_was_set:
- name: verify_account_email
value: null
- name: verify_account_confirmation
value: null
- name: verify_account_sufficient_california_income
value: null
- slot_was_not_set:
- name: based_in_california
- bot_uttered:
utter_name: utter_can_do_something_else

Expand Down Expand Up @@ -108,5 +126,14 @@ test_cases:
value: true
- bot_uttered:
utter_name: utter_verify_account_success
- slot_was_set:
- name: verify_account_email
value: null
- name: verify_account_confirmation
value: null
- name: verify_account_sufficient_california_income
value: null
- slot_was_not_set:
- name: based_in_california
- bot_uttered:
utter_name: utter_can_do_something_else
utter_name: utter_can_do_something_else

0 comments on commit e396ad9

Please sign in to comment.