CodeceptJS + Playwright Error: Cannot find module './helper/multiple' #3803
-
We are currently trying to run our tests in multiple browsers and eventually run those over our Lambdatest instance, nonetheless we haven't been able to even run them "locally" in multiple browsers nor the less at Lambdatest as when we try to run them using the The command that we are running is: The specifics of the error are the following:
Our current .conf file looks like this (it includes the current capabilities for Lambdatest even if it doesn't/shouldn't really matter): import * as dotenv from 'dotenv';
dotenv.config();
import { merge } from 'lodash';
import {defaultConfig} from '@forwardthinking/codeceptjs-helpers'
const webConfig = {
helpers: {
Playwright: {
url: 'https://demo.applitools.com/',
show: true,
waitForNavigation: 'networkidle',
desiredCapabilities: {}
},
multiple: {
profile1: {
browsers: [
{
browser: "chrome",
desiredCapabilties: {
'browserName': 'Chrome',
'browserVersion': '114.0',
'LT:Options': {
'platform': 'Windows 10',
'build': 'LT Poc with Playwright',
'name': 'Chrome - LT Test',
'user': process.env.LT_USERNAME,
'accessKey': process.env.LT_KEY,
}
}
},
{
browser: "firefox",
desiredCapabilties: {
'browserName': 'pw-firefox',
'browserVersion': 'latest',
'LT:Options': {
'platform': 'Windows 10',
'build': 'LT Poc with Playwright',
'name': 'Firefox - LT Test',
'user': process.env.LT_USERNAME,
'accessKey': process.env.LT_KEY,
}
}
},
]
},
profile2: {
browsers: [
{
browser: "safari",
desiredCapabilties: {
'browserName': 'pw-chromium',
'browserVersion': 'latest',
'LT:Options': {
'platform': 'MacOS Big sur',
'build': 'LT Poc with Playwright',
'name': 'Chromium MacOS - LT Test',
'user': process.env.LT_USERNAME,
'accessKey': process.env.LT_KEY,
}
}
}
]
},
//Helper API: Used to execute pre-conditions for specific API's
REST: {
endpoint: 'https://swapi.dev/api',
timeout: 10000
},
//recommended Helper to work with API with specific JSON responses
JSONResponse: {},
},
plugins: {
//disabled for POC purposes
cucumberJsonReporter: { enabled: false},
stats: { enabled: false },
},
}
}
const config = merge(defaultConfig,webConfig);
export {config} Any guidance for this issue would be greatly appreciated as we cannot find any information or similar issues around the only and even have other people that got it to work without any hassle, like this one -- https://codecept.discourse.group/t/running-tests-across-multiple-browsers-in-playwright/761/2 Thanks in advance! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 7 replies
-
@clundstedt-m Which CodeceptJS version are you using? As I see the multiple profiles is supported from https://codecept.io/changelog/#_3-5-0 |
Beta Was this translation helpful? Give feedback.
I could not trigger t…