allure2 icon indicating copy to clipboard operation
allure2 copied to clipboard

Error: TypeError: Cannot read properties of undefined (reading 'updateStep') with before each and details: false

Open apis3445 opened this issue 1 year ago • 2 comments

Describe the Bug

I am getting error (TypeError: Cannot read properties of undefined (reading 'updateStep') ) at AllureReporter.onStepEnd (C:...\node_modules\allure-playwright\src\index.ts:352:13) at C:\Users\testuser\source\repos\GMR.TMP.QAAutomation.Playwright_new\node_modules\playwright\lib\reporters\multiplexer.js:77:38 at wrap (C:...\node_modules\playwright\lib\reporters\multiplexer.js:96:5) at Multiplexer.onStepEnd (C:...\node_modules\playwright\lib\reporters\multiplexer.js:77:7) at InternalReporter.onStepEnd (C:...\node_modules\playwright\lib\reporters\internalReporter.js:93:31) at JobDispatcher._onStepEnd (C:...\node_modules\playwright\lib\runner\dispatcher.js:312:31) at WorkerHost.emit (node:events:519:28) at ChildProcess. (C:\U...\node_modules\playwright\lib\runner\processHost.js:93:16)

on console log when I execute a test that includes a after each test.step and details.false, with details: true I don't see any error

Steps to Reproduce

  1. Create a playwright test with test.step on before each
  2. On playwright.config reporter set detail: false
  3. Execute the tests

Expected Behaviour

Don't show any error on console

Screenshots or Additional Context

No response

What Language are you using?

TypeScript

What Framework/Allure Integration you are using?

allure-playwright

What version of Allure Integration you are using?

3.2.2

What version of Allure Report you are using?

3.2.2

Code of Conduct

  • [x] I agree to follow this project's Code of Conduct

apis3445 avatar Jun 18 '25 20:06 apis3445

Looks like the same issue here allure-framework/allure-js#1268

brk9394 avatar Jul 11 '25 16:07 brk9394

Indeed this is a dupliate of existing issue in a dedicated repo, please follow the linked issue The current workaround is to remove detail: false from the config

clergyman avatar Aug 12 '25 16:08 clergyman