@webaggregat Apologies for taking so long to answer. Thank you for replying and the screenshots, really helpful to be able to aid you in your problem.
Looking at your screenshots the problem is simple to fix:
In your codecept.conf.js
you have the following
helpers: {
WebDriver: { ... }
helpers: { // your problem is here as you can see, your IDE already underlines a problem with red squigly marks. It means that you already have a key with the name helpers within the same context
WdioHelper: {...},
}
}
To fix this problem you have to change it into this:
helpers: {
WebDriver: { ... }
WdioHelper: {...},
}
As you can see in the example here Helpers - Docs, your helpers are listed one after another within the helpers:
config key context, you do not need to mention the helpers
key for every helper you add.
helpers: {
WebDriver: {
url: "http://localhost",
browser: "chrome",
desiredCapabilities: {
chromeOptions: {
args: [ "--headless", "--disable-gpu", "--window-size=800,600" ]
}
}
}
HooksHelper: {
require: './helpers/hooks-helper.js',
},
RequestHelper: {
require: './helpers/request-helper.js',
},
WdioHelper: {
require: './helpers/wdio-helper.js',
},
DbHelper: {
require: './node_modules/codeceptjs-dbhelper',
},
EmailHelper: {
require: './helpers/email-helper.js'
},
JsdomHelper: {
require: './helpers/jsdom-helper.js'
},
AppiumHelper: {
require: './helpers/appium-helper.js'
},
Loki: {
require: './node_modules/codeceptjs-loki',
dbName: 'db.json',
dbSeed: true,
},
ConfigHelper: {
require: './helpers/config-helper.js',
}
}
As you can see from the more complex example above, all helpers are listed within the same context.
Hope this helps.