This proposal for allowing string and regex in the step definition patterns. I find it very unusual and enforcing to only allow regex in the step definitions, therefore made some changes for it to allow strings as well. So feel free to close this PR if that was the required behaviour! 🍻
Before the change this line wouldn't work.
Given('I am open Google\'s search page', async t => {
// ...
});
Also the example test was failing because apparently google changed their selector, I made some small changes so it should be passing now.
This proposal for allowing string and regex in the step definition patterns. I find it very unusual and enforcing to only allow regex in the step definitions, therefore made some changes for it to allow strings as well. So feel free to close this PR if that was the required behaviour! 🍻
Before the change this line wouldn't work.
Also the example test was failing because apparently google changed their selector, I made some small changes so it should be passing now.