/
the_zi
/
qaguru
Обзор
Документация
Войти
/
the_zi
/
qaguru
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
master
tests/example.spec.js
19 строк
596 B
Зарина
first_commit
09 янв 2026, 16:37
09 янв 2026, 16:37
51a4f96
Код
Авторство
О чём код?
// @ts-check import { test, expect } from '@playwright/test'; test('has title', async ({ page }) => { await page.goto('https://playwright.dev/'); // Expect a title "to contain" a substring. await expect(page).toHaveTitle(/Playwright/); }); test('get started link', async ({ page }) => { await page.goto('https://playwright.dev/'); // Click the get started link. await page.getByRole('link', { name: 'Get started' }).click(); // Expects page to have a heading with the name of Installation. await expect(page.getByRole('heading', { name: 'Installation' })).toBeVisible(); });