Skip to content

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

@GrzegorzMatuszakTSH

Description

@GrzegorzMatuszakTSH

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions