14 lines
451 B
JavaScript
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();
|
|
});
|
|
|