Skip to content

fix(testing): ensure baseUrl is not passed to playwright cli - #21943

Merged
Coly010 merged 1 commit into
nrwl:masterfrom
Coly010:playwright/remove-invalid-options
Feb 22, 2024
Merged

fix(testing): ensure baseUrl is not passed to playwright cli#21943
Coly010 merged 1 commit into
nrwl:masterfrom
Coly010:playwright/remove-invalid-options

Conversation

@Coly010

@Coly010 Coly010 commented Feb 22, 2024

Copy link
Copy Markdown
Contributor

Current Behavior

Playwright does not support --base-url as a CLI argument.
Some of our generators have generated baseUrl as an option to the @nx:/playwright:playwright executor.
When executed, this causes an error.

Expected Behavior

Ensure that baseUrl does not get added to the CLI args if it exists in the project.json
Add a migration to remove baseUrl if it already exists in the project.json

Related Issue(s)

Fixes #

@Coly010
Coly010 requested a review from a team as a code owner February 22, 2024 12:22
@Coly010
Coly010 requested a review from leosvelperez February 22, 2024 12:22
@Coly010 Coly010 self-assigned this Feb 22, 2024
@vercel

vercel Bot commented Feb 22, 2024

Copy link
Copy Markdown

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

1 Ignored Deployment
Name Status Preview Updated (UTC)
nx-dev ⬜️ Ignored (Inspect) Visit Preview Feb 22, 2024 3:21pm

@Coly010
Coly010 force-pushed the playwright/remove-invalid-options branch from 415dcbd to 72c51ef Compare February 22, 2024 12:23
Comment thread packages/playwright/src/executors/playwright/playwright.impl.ts Outdated
@Coly010
Coly010 force-pushed the playwright/remove-invalid-options branch from 72c51ef to 6385a6e Compare February 22, 2024 15:07
@Coly010
Coly010 force-pushed the playwright/remove-invalid-options branch from 6385a6e to 72b739c Compare February 22, 2024 15:20
@Coly010
Coly010 requested a review from leosvelperez February 22, 2024 15:20
@Coly010
Coly010 merged commit 1a7e812 into nrwl:master Feb 22, 2024
@Coly010
Coly010 deleted the playwright/remove-invalid-options branch February 22, 2024 16:00
@github-actions

Copy link
Copy Markdown
Contributor

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 Feb 28, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants