Skip to content

dynamic configs ignored for test retries #1809

Open

Description

@cviejo

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('https://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

Activity

  1. cviejo commented on Aug 4, 2019

    @cviejo
    ContributorAuthor

    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions