Skip to content

Commit

Permalink
feat: add baseUrl to playwright config file
Browse files Browse the repository at this point in the history
  • Loading branch information
EmmanuelDemey committed Aug 24, 2024
1 parent f88b401 commit 1cbebc1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion playwright.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export default defineConfig({
/* Shared settings for all the projects below. See https://playwright.dev/docs/api/class-testoptions. */
use: {
/* Base URL to use in actions like `await page.goto('/')`. */
// baseURL: 'http://127.0.0.1:3000',
baseURL: "http://localhost:3000",

/* Collect trace when retrying the failed test. See https://playwright.dev/docs/trace-viewer */
trace: "on-first-retry"
Expand Down
2 changes: 1 addition & 1 deletion tests/index.spec.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { test, expect } from "@playwright/test";

test("has title", async ({ page }) => {
await page.goto("http://localhost:3000/");
await page.goto("/");

await expect(page).toHaveTitle("Espace RDF de l'Insee");
});

0 comments on commit 1cbebc1

Please sign in to comment.