Something went wrong. Try again.
プレイグラウンド、サンドボックス、使い捨てスクリプト置き場
Something went wrong. Try again.
12345678910111213141516171819202122import { expect, test } from "@playwright/test";
test("first", async ({ page }) => { // @ts-ignore await page.goto(`file:///${__dirname}/test.html`);
// playwright test --browser=chromium : pass // playwright test --browser=firefox : pass // playwright test --browser=webkit : pass expect(await page.innerText("first-test")).toBe(`1`);});
test("second", async ({ page }) => { // @ts-ignore await page.goto(`file:///${__dirname}/test.html`);
// playwright test --browser=chromium : pass // playwright test --browser=firefox : pass // playwright test --browser=webkit : fail (return `2\n`) expect(await page.innerText("second-test")).toBe(`2`);});