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

CI-CD run error: TypeError: Cannot read properties of undefined (reading 'replace') #74

Closed
daniavander opened this issue Aug 9, 2024 · 2 comments · Fixed by #75
Closed
Assignees
Labels
bug Something isn't working

Comments

@daniavander
Copy link

when i want to run in azure devops pipeline, i get an error:

[email protected] smoke
playwright test --config=playwright.config.ts --project=chromesmoke --workers=1 --headed --grep @smoke

TypeError: Cannot read properties of undefined (reading 'replace')
at AzureDevOpsReporter._anonymizeString (D:\a\1\s\node_modules@alex_neo\playwright-azure-reporter\src\playwright-azure-reporter.ts:392:16)
at AzureDevOpsReporter._anonymizeObject (D:\a\1\s\node_modules@alex_neo\playwright-azure-reporter\src\playwright-azure-reporter.ts:403:28)
at AzureDevOpsReporter._validateOptions (D:\a\1\s\node_modules@alex_neo\playwright-azure-reporter\src\playwright-azure-reporter.ts:191:30)
at new AzureDevOpsReporter (D:\a\1\s\node_modules@alex_neo\playwright-azure-reporter\src\playwright-azure-reporter.ts:179:10)
at createReporters (D:\a\1\s\node_modules\playwright\lib\runner\reporters.js:68:55)
at Runner.runAllTests (D:\a\1\s\node_modules\playwright\lib\runner\runner.js:67:23)
at runTests (D:\a\1\s\node_modules\playwright\lib\program.js:210:85)
at t. (D:\a\1\s\node_modules\playwright\lib\program.js:54:7)
##[error]Cmd.exe exited with code '1'.
Finishing: RUN smoke tests

@daniavander
Copy link
Author

it has worked last week, but i came from holiday, and get this error:S
i use at the same time these reporters (in the past i also used to:
['list', { printSteps: true }],
['./my-awesome-reporter'],
['html', { open: 'never' }],
['junit', { outputFile: 'results.xml' }],
)

image

@daniavander
Copy link
Author

this occurs after the last merge: dd4a7a0

@alexneo2003 alexneo2003 self-assigned this Aug 9, 2024
@alexneo2003 alexneo2003 added the bug Something isn't working label Aug 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
2 participants