Skip to content

dynamic configs ignored for test retries #1809

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

Open
cviejo opened this issue Jul 29, 2019 · 1 comment
Open

dynamic configs ignored for test retries #1809

cviejo opened this issue Jul 29, 2019 · 1 comment
Labels

Comments

@cviejo
Copy link
Contributor

cviejo commented Jul 29, 2019

What are you trying to achieve?

Dynamic configs applied to retries as well

What do you get instead?

Dynamic configs are ignored for retries after a test fails

Feature('test');

Scenario('test', I => {
   I.amOnPage('http://github.com');
   I.waitInUrl('fail');
})
   .retry(1)
   .config({ show: true }); // will be ignored for the second run

Details

  • CodeceptJS version: 2.2.1
  • NodeJS Version: v8.16.0
  • Operating System: MacOS 10.14.4
@DavertMik DavertMik added the bug label Jul 29, 2019
@cviejo
Copy link
Contributor Author

cviejo commented Aug 4, 2019

Just looked into this, mocha creates a copy of the test object for each retry, so the configs set here are lost, or at least not copied to the new object. Can't find a quick and clean solution for this. Feature().retry().config() works however so for now i'd organize the tests differently

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

No branches or pull requests

2 participants