- 配置 Playwright:baseURL 改为 localhost:2026,视频仅在 CI 保留 - 更新 .gitignore 排除 Playwright 报告/缓存 - 新增线程记忆 E2E 测试:验证发送消息后可加载 summary 且无日志报错 - thread-memory-panel 添加 data-testid 属性便于定位
19 lines
583 B
TypeScript
19 lines
583 B
TypeScript
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();
|
|
});
|