Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Optional text is not working #17

Open
jacqueline-costa-sofist opened this issue Nov 28, 2019 · 1 comment
Open

Optional text is not working #17

jacqueline-costa-sofist opened this issue Nov 28, 2019 · 1 comment

Comments

@jacqueline-costa-sofist

While reading cucumber4-started an optional text can be used as follow:

(s)he searches for {string}
she/he searches for {string}

But when I try to use this example in my project usign language pt, the feature file or steps aren't found

Example:

Feature file

# language: pt

Dado que o "Stephen" esteja logado
Quando ele acessar o e-mail
Então deve ver os emails.

Steps

@Quando("(que )ele/ela acess(ar)(a)(ou) o e-mail")
   public void acessarEmail() {
 
   }

Usign "ele/ela" not works, while (ele)(ela) work, but ele or ela is mandatory to be informed.

Cucumber4-version = 4.2.0
Serenity-Cucumber = 1.0.21
Serenity-Version = 2.0.80

Any idea of what is happening?

@wakaleo
Copy link
Member

wakaleo commented Nov 28, 2019

It could be a bug in the dialect, especially if it works for you in English - I would ask the Cucumber community.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants