ui
ui copied to clipboard
Cannot set property 'isRunning' of null
"@codeceptjs/ui": "0.2.5",
"codeceptjs": "2.5.0",
"playwright": "0.11.1",
Log:
❯ npx codecept-ui --debug --verbose
CodeceptJS config: {
tests: './specs/*.spec.ts',
output: './build',
require: [ 'ts-node/register' ],
helpers: {
Playwright: { url: 'http://localhost', show: false, browser: 'chromium' }
},
include: { I: './steps.ts' },
name: 'clinic-acceptance',
plugins: {
retryFailedStep: { enabled: true },
screenshotOnFail: { enabled: true }
}
}
Bootstrap executed, tests can be launched
Open http://localhost:3001 in your web browser!
CodeceptJS config: {
tests: './specs/*.spec.ts',
output: './build',
require: [ 'ts-node/register' ],
helpers: {
Playwright: { url: 'http://localhost', show: false, browser: 'chromium' }
},
include: { I: './steps.ts' },
name: 'clinic-acceptance',
plugins: {
retryFailedStep: { enabled: true },
screenshotOnFail: { enabled: true }
}
}
CodeceptJS v2.5.0
Using test root "/Users/visortelle/vcs/heal-c-2/modules/clinic/test/acceptance"
Helpers: Playwright, RealtimeReporterHelper, ConsoleRecorderHelper, SingleSessionHelper
Plugins: screenshotOnFail, retryFailedStep
test github --
[1] Starting recording promises
Emitted | suite.before ([object Object])
› [Session] Starting singleton browser session
[1] Error | TypeError: Cannot read property 'options' of null
Emitted | test.failed ([object Object])
✖ "before all" hook: codeceptjs.beforeSuite for "test something at github" in 387ms
[1] Error | TypeError: Cannot read property 'options' of null
TypeError: Cannot read property 'options' of null
Emitted | suite.after ([object Object])
[1] Error | TypeError: Cannot set property 'isRunning' of null
Emitted | test.failed ([object Object])
✖ "after all" hook: codeceptjs.afterSuite for "test something at github" in 1ms
[1] Error | TypeError: Cannot set property 'isRunning' of null
TypeError: Cannot set property 'isRunning' of null
-- FAILURES:
1) test github
"before all" hook: codeceptjs.beforeSuite for "test something at github":
Cannot read property 'options' of null
ypeError: Cannot read property 'options' of null
at SingleSessionHelper._beforeSuite (node_modules/@codeceptjs/ui/lib/codeceptjs/single-session.helper.js:36:17)
at /Users/visortelle/vcs/heal-c-2/modules/clinic/test/acceptance/node_modules/codeceptjs/lib/listener/helpers.js:27:69
2) test github
"after all" hook: codeceptjs.afterSuite for "test something at github":
Cannot set property 'isRunning' of null
ypeError: Cannot set property 'isRunning' of null
at SingleSessionHelper._afterSuite (node_modules/@codeceptjs/ui/lib/codeceptjs/single-session.helper.js:45:27)
at /Users/visortelle/vcs/heal-c-2/modules/clinic/test/acceptance/node_modules/codeceptjs/lib/listener/helpers.js:27:69
at processTicksAndRejections (internal/process/task_queues.js:93:5)
FAIL | 0 passed, 2 failed // 391ms
Emitted | global.result ([object Object])
Emitted | global.after ([object Object])
Error is in: node_modules/@codeceptjs/ui/lib/codeceptjs/single-session.helper.js:45:27
The same test ends with success with codeceptjs run
.