In Gherkin syntax "And" will help the developer to not repeat the next step if it matches the previous one in the declaration.
E.g
Given The accessibility settings are enabled
Given The user has set "Protanopia" as color blindness
Then The background color should not be "red"
Then The background color should not be "green"
Can be written using the "And" keyword to make it easier to read and not repetitive:
Given The accessibility settings are enabled
And The user has set "Protanopia" as color blindness
Then The background color should not be "red"
And The background color should not be "green"
In Gherkin syntax "And" will help the developer to not repeat the next step if it matches the previous one in the declaration. E.g
Can be written using the "And" keyword to make it easier to read and not repetitive: