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

New window opens when changing step #3332

Open
MaxenceBontePE opened this issue Nov 21, 2023 · 4 comments
Open

New window opens when changing step #3332

MaxenceBontePE opened this issue Nov 21, 2023 · 4 comments

Comments

@MaxenceBontePE
Copy link

What happened?

This follows issue #3321
I put this in the serenity.conf

serenity {
      take.screenshots = AFTER_EACH_STEP
      pronouns = "il,elle,ils,elles,son,sa,leur,leurs"
}

I have my steps written as this

  Scénario: Brouillon a minima
    Etant donné que Renan a saisi une offre avec uniquement les données obligatoires en tant qu'entreprise "standard"
    Quand il enregistre son offre en brouillon
    Alors il devrait retrouver les données de son offre

The first step executes well, but when switching to the second one, the (Chrome) driver opens a new window that remains blank and the next Target remains unfound.

When I change my steps to

  Scénario: Brouillon a minima
    Etant donné que Renan a saisi une offre avec uniquement les données obligatoires en tant qu'entreprise "standard"
    Quand Renan enregistre son offre en brouillon
    Alors Renan devrait retrouver les données de son offre

then no new window gets open and the scenario passes.

What did you expect to happen?

Scenario as written using pronouns should have passed as well.

Serenity BDD version

4.0.19

JDK version

11.0.21

Execution environment

Windows 10
Chrome with ChromeDriver v.119

How to reproduce the bug.

  • define pronouns in serenity.conf file
  • use a non-English language in your feature
  • write steps without using pronouns
  • run : test passes
  • change steps using pronouns
  • run: driver opens new blank window when changing step and test fails

How can we make it happen?

Add it to the Serenity BDD backlog and wait for a volunteer to pick it up

@wakaleo
Copy link
Member

wakaleo commented Nov 24, 2023

I can't reproduce this issue - are you sure you are not seeing multiple browsers open due to the parallel execution? @MaxenceBontePE can you create a sample project?

@MaxenceBontePE
Copy link
Author

Hi,
sorry for the late response the app under tet was gone.
I made a few changes to the start project and put it there
https://github.com/MaxenceBontePE/serenity_cucumber_french/upload
I have two windows opening and tests fail, nothing gets typed.

Thanks.

@wakaleo
Copy link
Member

wakaleo commented Dec 7, 2023

image

@MaxenceBontePE
Copy link
Author

MaxenceBontePE commented Dec 7, 2023

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