tables.yml 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. feature:
  2. title: A scenario outline
  3. language: en
  4. line: 1
  5. description: ~
  6. scenarios:
  7. -
  8. type: outline
  9. title: ~
  10. line: 3
  11. steps:
  12. - { keyword_type: Given, type: Given, text: I add <a> and <b>, line: 4 }
  13. -
  14. keyword_type: When
  15. type: When
  16. text: I pass a table argument
  17. line: 6
  18. arguments:
  19. -
  20. type: table
  21. rows:
  22. 7: [foo, bar]
  23. 8: [bar, baz]
  24. - { keyword_type: Then, type: Then, text: I the result should be <c>, line: 10 }
  25. -
  26. keyword_type: Then
  27. type: And
  28. text: the table should be properly escaped:
  29. line: 12
  30. arguments:
  31. -
  32. type: table
  33. rows:
  34. 13: ['|a', b, c]
  35. 14: [1, '|2', 3]
  36. 15: [2, 3, '|4']
  37. examples:
  38. 18: [ a, b, c ]
  39. 19: [ 1, '|2', 3 ]
  40. 20: [ 2, 3, 4 ]