Skip to content

support object API changed with 2.1.3 release #1679

@johnyb

Description

@johnyb

What are you trying to achieve?

One of our support objects used to be an array. It looks similar to this:

module.exports = ['user number 1', 'user number2'];

It's included as "users" and was used in tests:

Scenario('Test login', function (users, I) {
    I.login(users[0]);
});

What do you get instead?

The support object is not an array any longer, after the upgrade to 2.1.3. Related commit would be 314fcc1 - this changes the support object to always be an object and just copy all attributes using Object.assign. Regarding the commit message, I'm not sure this was intended. Especially since the upgrade was just on "patch level", not a major version bump.

Details

  • CodeceptJS version: 2.1.3
  • NodeJS Version: any
  • Operating System: any
  • Configuration file:
# relevant part is:
    include: {
        users: './e2e/users'
    }

Any hints on how to solve this issue? I'm totally fine with changing code on our side but currently have no clue on how to best solve this.

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