Skip to content

Port cannot be set for Playwright #4806

Answered by bluwy
joeinnes asked this question in Q&A
Discussion options

You must be logged in to vote

You need another -- for npm run preview:

npm run build && npm run preview -- --port 3005

then change to port: 3005.

If you want to use the dev server for testing, you can set webServer.reuseExistingServer: true too. https://playwright.dev/docs/test-advanced#launching-a-development-web-server-during-the-tests

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@NatoBoram
Comment options

Answer selected by joeinnes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants
Converted from issue

This discussion was converted from issue #4803 on May 03, 2022 14:13.