TheSoftwareHouse / Kakunin

An E2E testing framework
http://kakunin.io
MIT License
147 stars 25 forks source link

Outdated documentation for 'there is element * with regex' #196

Open GrzegorzMatuszakTSH opened 4 years ago

GrzegorzMatuszakTSH commented 4 years ago

Hi! I wanted to write test using regex. When I looked in doc I found:

there is element ":elementName" with regex ":matcher"

https://thesoftwarehouse.github.io/Kakunin/docs/steps-elements#there-is-no-element-elementname-with-regex-matcher

Unfortunately this scenario doesn't work:

   ? Then there is element "body" with regex "<matcher>"
       Undefined. Implement with the following snippet:

         Then('there is element {string} with regex {string}', function (string, string2) {
           // Write code here that turns the phrase above into concrete actions
           return 'pending';
         });

Probably this is the correct version:

there is element "([^"]*)" with "([^"]*)" regex

Please update documentation/code :)

Version: 3.0.