Just a pointer for Cucumber tests:
Avoid the i should see “TEXT” step, it checks only if a certain string is found in document.body. It is easy but it is not reliable to check if this text is really visible. Choose to see if a specific element is visible or contains a certain text. |
AVOID:
USE:
More info on alternatif steps: Language Reference