Skip to content

Commit 284d5f5

Browse files
authored
docs: Update README.md (#400)
1 parent ddf7f2b commit 284d5f5

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ You can follow the documentation below, or if you prefer to hack on a working ex
2121
* [How to write tests](#how-to-write-tests)
2222
* [Cucumber Expressions](#cucumber-expressions)
2323
* [Given/When/Then functions](#cucumber-functions)
24+
* [Data table parameters](#data-table-parameters)
2425
* [Custom Parameter Type Resolves](#custom-parameter-type-resolves)
2526
* [Before and After hooks](#before-and-after-hooks)
2627
* [Background section](#background-section)
@@ -181,6 +182,10 @@ Since Given/When/Then are on global scope please use
181182
```
182183
to make IDE/linter happy or import them directly as shown in the above examples.
183184

185+
### Data table parameters
186+
187+
To create steps that use gherkin data tables, the step definition needs to take an object and handle it like in these examples: [Example Feature](https://github.com/TheBrainFamily/cypress-cucumber-preprocessor/blob/master/cypress/integration/DataTable.feature), [Example Step Definition](https://github.com/TheBrainFamily/cypress-cucumber-preprocessor/blob/master/cypress/support/step_definitions/dataTable.js).
188+
184189
### Custom Parameter Type Resolves
185190

186191
Thanks to @Oltodo we can now use Custom Parameter Type Resolves.

0 commit comments

Comments
 (0)