blob: 09d093f69767f4f1d0a6f32e5bd882653fced89f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
// @ts-check
const { test, expect } = require('@playwright/test');
test('has title', async ({ page }) => {
await page.goto('/');
// Expect a title "to contain" a substring.
await expect(page).toHaveTitle(/Ed./);
});
test('our documentation link', async ({ page }) => {
await page.goto('/');
// Click the "our documentation" link.
await page.getByText('our documentation').click();
// Expects page to have a heading with the name of Documentation.
await expect(page.getByRole('heading', { name: 'Documentation' })).toBeVisible();
});
|