In below scenario the "model" parameter is optional because it is only needed for one bank. And for other bank we don't need this model parameter. But I want to make one single "When" syntax implementation to make it resuable for all of the bank
Scenario Outline : Merchant creates an account in abc bank. Given I am a merchant When I create a "" "" with "" Then I should receive a response And I should received expected details Examples: |type | bank | model| |abc | xyz | Test |
Step Implementation file: When('I create a {string} {string} with {string}', (type, bank, model) => {
})