diff --git a/playwright.config.ts b/playwright.config.ts index 3a10fe6..b34dc1a 100644 --- a/playwright.config.ts +++ b/playwright.config.ts @@ -40,12 +40,14 @@ export default defineConfig({ }, { name: "android", + grepInvert: /@desktop/, use: { ...devices["Pixel 5"] } }, { name: "iphone", + grepInvert: /@desktop/, use: { ...devices["iPhone 13"] } diff --git a/tests/vrt/poem-card.spec.ts b/tests/vrt/poem-card.spec.ts index f200583..f35946a 100644 --- a/tests/vrt/poem-card.spec.ts +++ b/tests/vrt/poem-card.spec.ts @@ -46,7 +46,7 @@ const poems: Poem[] = [ } ]; -test("カードのレイアウトが変化していない", async ({ shinyPoems }) => { +test("カードのレイアウトが変化していない @desktop", async ({ shinyPoems }) => { const { page } = shinyPoems; // 検索結果を上書き