Hello! I am running a test, and I got stuck with an issue I wrote the intent “give option”, in my test story, but the test story is predicting “give_option: 2”, with the intent. I could not figure it out how to solve this. I tried to place “give_option: 2” in quotes, I also tried with pipe |.
Here is my test story
- story: greet and then ask option
steps:
- slot_was_set:
- bot_active: true
- platform_verified: true
- crisp_verified: true
- user: |
Boa tarde
intent: greet
- action: utter_greet_known
- action: utter_how_can_i_help
- action: utter_menu
- user: |
2
intent: give_option: [2](option)
- action: action_handle_options
- action: utter_what_else
- slot_was_set:
- bot_active: true
- action: action_listen
Here is the failed_test_stories.yml
version: "3.1"
stories:
- story: greet and then ask option (.\tests\test_stories.yml)
steps:
- slot_was_set:
- bot_active: true
- slot_was_set:
- platform_verified: true
- slot_was_set:
- crisp_verified: true
- intent: greet
- action: utter_greet_known
- action: utter_how_can_i_help
- action: utter_menu
- intent: give_option:\ [2](option) # predicted: give_option: [2](option)
- action: action_handle_options # predicted: action_listen
- action: utter_what_else # predicted: action_listen
- slot_was_set:
- bot_active: true