Notes/_regroup/integration-tests/example.disabled.ts

19 lines
599 B
TypeScript
Raw Normal View History

2025-01-09 18:07:02 +02:00
import { test, expect } from "@playwright/test";
2025-01-09 18:07:02 +02:00
test("has title", async ({ page }) => {
await page.goto("https://playwright.dev/");
2025-01-09 18:07:02 +02:00
// Expect a title "to contain" a substring.
await expect(page).toHaveTitle(/Playwright/);
});
2025-01-09 18:07:02 +02:00
test("get started link", async ({ page }) => {
await page.goto("https://playwright.dev/");
2025-01-09 18:07:02 +02:00
// Click the get started link.
await page.getByRole("link", { name: "Get started" }).click();
2025-01-09 18:07:02 +02:00
// Expects page to have a heading with the name of Installation.
await expect(page.getByRole("heading", { name: "Installation" })).toBeVisible();
});