Skip to content

Commit

Permalink
feat: playwrightのエンドポイント設定を更新
Browse files Browse the repository at this point in the history
  • Loading branch information
吉野敬太郎 authored and 吉野敬太郎 committed Mar 15, 2024
1 parent 599867b commit 8a1cae8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions playwright.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,15 +36,15 @@ const config: PlaywrightTestConfig = {
/* Maximum time each action such as `click()` can take. Defaults to 0 (no limit). */
actionTimeout: 0,
/* Base URL to use in actions like `await page.goto('/')`. */
baseURL: "http://localhost:3000",
baseURL: "http://localhost:4321",

/* Collect trace when retrying the failed test. See https://playwright.dev/docs/trace-viewer */
trace: "on-first-retry",
},
/* start server when running the testing script */
webServer: {
command: "bun --bun run start",
url: "http://localhost:3000/",
url: "http://localhost:4321/",
reuseExistingServer: !process.env.CI,
},

Expand Down
2 changes: 1 addition & 1 deletion src/test/topPageTest.spec.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { test, expect } from "@playwright/test";

test("test", async ({ page }) => {
await page.goto("http://localhost:3000/");
await page.goto("http://localhost:4321/");
await page
.getByRole("link", {
name: "2022年12月19日 初めての投稿~このブログを作った経緯~ このブログの初めての投稿です。このブログを作った経緯とか、これから何に使うのかとかについて説明しています。今後ともよろしくお願いします。",
Expand Down

0 comments on commit 8a1cae8

Please sign in to comment.