https://cypress.io logo
Cypress BDD style but without cucumber
# i-need-help
c
I want to make my cypress tests as readable as possible with BDD approach. However I don't want to use Cucumber since I believe it comes with an extra layer which you have to also maintain. I came up with this simple solution but I also want to hear other's opinions. I am using page object model and I added
and()
and
'then()'
functions to my base page object and they only returns the instance of the page object by
return this;
. Then I just chain this functions on the test as following. Please let me know about your thought and ideas regarding this. Maybe there is a better way to achieve this
4 Views