Open
Description
mirao@jobr:~/workspace/my$ codeceptjs run
Deprecation Warning: 'tryTo' has been moved to the 'codeceptjs/effects' module. Disable tryTo plugin to remove this warning.
Deprecation Warning: 'retryTo' has been moved to the 'codeceptjs/effects' module. Disable retryTo plugin to remove this warning.
CodeceptJS v3.7.2 #StandWithUkraine
Using test root "/home/mirao/workspace/my"
My --
✔ test something in 582ms
OK | 1 passed // 938ms
Test
Feature('My');
Scenario('test something', ({ I }) => {
I.amOnPage('https://www.google.com');
I.see('Google');
});
TS config
import { setHeadlessWhen, setCommonPlugins } from '@codeceptjs/configure';
// turn on headless mode when running with HEADLESS=true environment variable
// export HEADLESS=true && npx codeceptjs run
setHeadlessWhen(process.env.HEADLESS);
// enable all common plugins https://github.com/codeceptjs/configure#setcommonplugins
setCommonPlugins();
export const config: CodeceptJS.MainConfig = {
tests: './*_test.ts',
output: './output',
helpers: {
Playwright: {
browser: 'chromium',
url: 'http://localhost',
show: true
}
},
include: {
I: './steps_file'
},
name: 'my'
}
Used SW:
- CodeceptJS 3.7.2
- Playwright 1.50.1
- NodeJS 22
- Ubuntu 24.04