playwright-js/tests/testexample.spec.js
2024-09-29 11:24:09 +08:00

14 lines
451 B
JavaScript

// @ts-check
const { test, expect } = require("./common");
test("get started link", async ({ page, homePage }) => {
await page.goto("https://playwright.dev/");
// Click the get started link.
// await page.getByRole('link', {name: 'Get started'}).click();
await homePage.clickStart();
// Expects page to have a heading with the name of Installation.
await expect(page.getByRole("heading", { name: "Installation" })).toBeVisible();
});