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

fix(testing): make playwright nxE2EPreset options optional #18729

Merged
merged 1 commit into from
Aug 21, 2023

Conversation

shaharkazaz
Copy link
Contributor

@shaharkazaz shaharkazaz commented Aug 20, 2023

Current Behavior

The options argument is optional and therefore the following should work:

nxE2EPreset(__filename)

When running the code you get:

TypeError: Cannot read properties of undefined (reading 'testDir')

Expected Behavior

nxE2EPreset(__filename) should work as expected.

Related Issue(s)

Fixes #

@shaharkazaz shaharkazaz requested a review from a team as a code owner August 20, 2023 12:59
@vercel
Copy link

vercel bot commented Aug 20, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
nx-dev ✅ Ready (Inspect) Visit Preview 💬 Add feedback Aug 21, 2023 4:24pm

@shaharkazaz
Copy link
Contributor Author

What's the scope here if not playwright? testing?

Copy link
Contributor

@barbados-clemens barbados-clemens left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the fix!
the scope is 'testing'

@barbados-clemens barbados-clemens changed the title fix(playwright): nxE2EPreset fails when no options are passed fix(testing): playwright nxE2EPreset fails when no options are passed Aug 21, 2023
@barbados-clemens barbados-clemens changed the title fix(testing): playwright nxE2EPreset fails when no options are passed fix(testing): make playwright nxE2EPreset options optional Aug 21, 2023
@barbados-clemens barbados-clemens added the scope: testing tools Issues related to Cypress / Jest / Playwright / Vitest support in Nx label Aug 21, 2023
@shaharkazaz
Copy link
Contributor Author

@barbados-clemens Ok. Do you want me to change the commit and force push to replace the message?

@barbados-clemens
Copy link
Contributor

@barbados-clemens Ok. Do you want me to change the commit and force push to replace the message?

Yeah, ci checks the commit message formats, which is why it's failing currently.

@shaharkazaz
Copy link
Contributor Author

@barbados-clemens sure np

@github-actions
Copy link

This pull request has already been merged/closed. If you experience issues related to these changes, please open a new issue referencing this pull request.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 27, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
scope: testing tools Issues related to Cypress / Jest / Playwright / Vitest support in Nx
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants