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.
What are you trying to achieve?
One of our support objects used to be an array. It looks similar to this:
It's included as "users" and was used in tests:
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
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.