Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

allure-codeceptjs version 2.13.0 seeing "Error processing suite.before event: TypeError: (0 , crypto_1.randomUUID) is not a function" #896

Closed
1 task done
sandeep-teegala opened this issue Feb 29, 2024 · 4 comments
Assignees
Milestone

Comments

@sandeep-teegala
Copy link

Describe the Bug

Getting an error "Error processing suite.before event: TypeError: (0 , crypto_1.randomUUID) is not a function"

Error processing suite.before event:
TypeError: (0 , crypto_1.randomUUID) is not a function
at testResultContainer (C:\node_modules\allure-js-commons\dist\src\constructors.js:8:39)
at new AllureGroup (C:\node_modules\allure-js-commons\dist\src\AllureGroup.js:10:75)
at AllureRuntime.startGroup (C:\node_modules\allure-js-commons\dist\src\AllureRuntime.js:20:33)
at AllureReporter.ensureAllureGroupCreated (C:\node_modules\allure-codeceptjs\dist\index.js:233:28)
at AllureReporter.ensureAllureGroupCreated (C:\node_modules\allure-codeceptjs\dist\index.js:232:48)
at AllureReporter.createTest (C:\node_modules\allure-codeceptjs\dist\index.js:64:28)
at C:\node_modules\allure-codeceptjs\dist\index.js:82:18
at Array.forEach ()
at AllureReporter.suiteStarted (C:\node_modules\allure-codeceptjs\dist\index.js:81:21)
at EventEmitter.emit (events.js:327:22)

Add and Edit information
TypeError: Cannot read property 'newContext' of undefined
I login to portal "username", "password"
× FAILED in 34ms

Error processing test.after event:
TypeError: (0 , crypto_1.randomUUID) is not a function
at testResultContainer (C:\node_modules\allure-js-commons\dist\src\constructors.js:8:39)
at new AllureGroup (C:\node_modules\allure-js-commons\dist\src\AllureGroup.js:10:75)
at AllureRuntime.startGroup (C:\node_modules\allure-js-commons\dist\src\AllureRuntime.js:20:33)
at AllureReporter.ensureAllureGroupCreated (C:\node_modules\allure-codeceptjs\dist\index.js:233:28)
at AllureReporter.ensureAllureGroupCreated (C:\node_modules\allure-codeceptjs\dist\index.js:232:48)
at AllureReporter.createTest (C:\node_modules\allure-codeceptjs\dist\index.js:64:28)
at AllureReporter.testAfter (C:\node_modules\allure-codeceptjs\dist\index.js:163:18)
at EventEmitter.emit (events.js:327:22)
at Object.emit (C:\node_modules\codeceptjs\lib\event.js:149:28)
at C:\node_modules\codeceptjs\lib\scenario.js:182:11

Steps to Reproduce

Setup Codeceptjs with playwright framework
Add Allure-codeceptjs plugin
Run one test
you will see the above error

Expected Behaviour

test should start without any error

Screenshots or Additional Context

No response

What Language are you using?

JavaScript

What Framework/Allure Integration you are using?

allure-codeceptjs

What version of Allure Integration you are using?

2.13.0

What version of Allure Report you are using?

2.21.0

Code of Conduct

  • I agree to follow this project's Code of Conduct
@sandeep-teegala sandeep-teegala added the type:bug Something isn't working label Feb 29, 2024
@baev baev transferred this issue from allure-framework/allure2 Mar 1, 2024
@epszaw
Copy link
Member

epszaw commented Mar 7, 2024

Hey there! Which node version do you use?

@sandeep-teegala
Copy link
Author

V18.18.2

@epszaw
Copy link
Member

epszaw commented Mar 7, 2024

Ok, will investigate the problem

@epszaw epszaw self-assigned this Mar 7, 2024
@baev baev added this to the 3.0 milestone Apr 10, 2024
@epszaw
Copy link
Member

epszaw commented May 24, 2024

The problem was solved in the upcoming 3.0 version. Stay in touch to get news about the next release.

@epszaw epszaw closed this as completed May 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants