1
+ metadata :
2
+ - duplicate_confirmation :
3
+ turn_idx : 2
1
4
test_cases :
2
5
- test_case : user_orders_pizza_stating_which_type_and_corrects_quantity_later
3
6
steps :
@@ -120,21 +123,18 @@ test_cases:
120
123
utter_name : utter_ask_payment_option
121
124
- user : wait, i meant to say the pizza should be delivered to 13 Pine Road.
122
125
assertions :
126
+ - flow_started : pattern_correction
123
127
- bot_uttered :
124
- text_matches : " I'm sorry about that. Let's correct your address. Please confirm your new address?"
125
- - slot_was_set :
126
- - name : address
127
- value : null
128
- - bot_uttered :
129
- utter_name : utter_ask_address
130
- - user : 13 Pine Road
128
+ utter_name : utter_ask_confirm_slot_correction
129
+ - user : /SetSlots(confirm_slot_correction=true)
131
130
assertions :
132
131
- slot_was_set :
133
132
- name : address
134
133
value : 13 Pine Road
135
134
- bot_uttered :
136
135
utter_name : utter_confirm
137
136
- user : /SetSlots(confirmation_order=True)
137
+ metadata : duplicate_confirmation
138
138
assertions :
139
139
- bot_uttered :
140
140
utter_name : utter_ask_payment_option
@@ -189,7 +189,7 @@ test_cases:
189
189
- bot_uttered :
190
190
utter_name : utter_ask_card_details
191
191
192
- - test_case : user_orders_pizza_stating_which_type_and_corrects_order_details_later
192
+ - test_case : user_orders_pizza_stating_which_type_and_corrects_generically_later
193
193
steps :
194
194
- user : I would like to order a diavola pizza.
195
195
assertions :
@@ -218,17 +218,16 @@ test_cases:
218
218
utter_name : utter_ask_payment_option
219
219
- user : actually, i made a mistake and need to update my delivery address first.
220
220
assertions :
221
+ - flow_started : pattern_correction
221
222
- bot_uttered :
222
- text_matches : " I'm sorry about that. Let's correct your order. What would you like to change?"
223
- buttons :
224
- - title : Pizza
225
- payload : /SetSlots(pizza=null)
226
- - title : Quantity
227
- payload : /SetSlots(num_pizza=null)
228
- - title : Address
229
- payload : /SetSlots(address=null)
230
- - user : /SetSlots(address=null)
223
+ utter_name : utter_ask_confirm_slot_correction
224
+ - user : /SetSlots(confirm_slot_correction=true)
231
225
assertions :
226
+ - slot_was_set :
227
+ - name : confirm_slot_correction
228
+ value : true
229
+ - bot_uttered :
230
+ utter_name : utter_corrected_previous_input
232
231
- bot_uttered :
233
232
utter_name : utter_ask_address
234
233
- user : 3 Pine Road
@@ -239,6 +238,67 @@ test_cases:
239
238
- bot_uttered :
240
239
utter_name : utter_confirm
241
240
- user : /SetSlots(confirmation_order=True)
241
+ metadata : duplicate_confirmation
242
242
assertions :
243
243
- bot_uttered :
244
244
utter_name : utter_ask_payment_option
245
+
246
+ - test_case : user_orders_pizza_then_corrects_pizza_type_and_number_and_address
247
+ steps :
248
+ - user : I'd like to order some pizza.
249
+ assertions :
250
+ - bot_uttered :
251
+ utter_name : utter_ask_pizza
252
+ - user : Could I have a cappriciosa?
253
+ assertions :
254
+ - slot_was_set :
255
+ - name : pizza
256
+ value : cappriciosa
257
+ - bot_uttered :
258
+ utter_name : utter_ask_num_pizza
259
+ - user : 3 please
260
+ assertions :
261
+ - slot_was_set :
262
+ - name : num_pizza
263
+ value : 3
264
+ - bot_uttered :
265
+ utter_name : utter_ask_address
266
+ - user : wait can i actually just get 1 festa de carne pizza instead
267
+ assertions :
268
+ - flow_started : pattern_correction
269
+ - bot_uttered :
270
+ utter_name : utter_ask_confirm_slot_correction
271
+ - user : /SetSlots(confirm_slot_correction=true)
272
+ assertions :
273
+ - slot_was_set :
274
+ - name : pizza
275
+ value : festa de carne
276
+ - slot_was_set :
277
+ - name : num_pizza
278
+ value : 1
279
+ - bot_uttered :
280
+ utter_name : utter_corrected_previous_input
281
+ - bot_uttered :
282
+ utter_name : utter_ask_address
283
+ - user : 30 Pine Road
284
+ assertions :
285
+ - slot_was_set :
286
+ - name : address
287
+ value : 30 Pine Road
288
+ - bot_uttered :
289
+ utter_name : utter_confirm
290
+ - user : oh I gave my work address, i actually want it delivered to my home at 13 Pine Road
291
+ assertions :
292
+ - flow_started : pattern_correction
293
+ - bot_uttered :
294
+ utter_name : utter_ask_confirm_slot_correction
295
+ - user : /SetSlots(confirm_slot_correction=true)
296
+ metadata : duplicate_confirmation
297
+ assertions :
298
+ - slot_was_set :
299
+ - name : address
300
+ value : 13 Pine Road
301
+ - bot_uttered :
302
+ utter_name : utter_corrected_previous_input
303
+ - bot_uttered :
304
+ utter_name : utter_confirm
0 commit comments