Skip to content

Commit 39d3f77

Browse files
authored
chore: use relative path in the comment for the baseURL (#165)
* chore: use relative path in the comment for the baseURL Othewise it may cause confusion if the user puts something like https://demo.playwright.dev/todomvc/#/ in the base url and wants to navigate to that exact url by default. * use empty string
1 parent e76f738 commit 39d3f77

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

assets/playwright.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ export default defineConfig({
2626
reporter: 'html',
2727
/* Shared settings for all the projects below. See https://playwright.dev/docs/api/class-testoptions. */
2828
use: {
29-
/* Base URL to use in actions like `await page.goto('/')`. */
29+
/* Base URL to use in actions like `await page.goto('')`. */
3030
// baseURL: 'http://localhost:3000',
3131

3232
/* Collect trace when retrying the failed test. See https://playwright.dev/docs/trace-viewer */

assets/playwright.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ export default defineConfig({
2525
reporter: 'html',
2626
/* Shared settings for all the projects below. See https://playwright.dev/docs/api/class-testoptions. */
2727
use: {
28-
/* Base URL to use in actions like `await page.goto('/')`. */
28+
/* Base URL to use in actions like `await page.goto('')`. */
2929
// baseURL: 'http://localhost:3000',
3030

3131
/* Collect trace when retrying the failed test. See https://playwright.dev/docs/trace-viewer */

0 commit comments

Comments
 (0)