Files
vue-ts-example/tests/playwright/api-page.spec.ts
严浩 2df09cf33f
Some checks failed
/ playwright (push) Has been skipped
/ surge (push) Failing after 36s
/ lint-build-and-check (push) Failing after 55s
/ build-and-deploy-to-vercel (push) Failing after 1m13s
/ depcheck (push) Has been cancelled
feat: 整理目录结构
2025-03-25 10:36:19 +08:00

10 lines
372 B
TypeScript

import { expect, test } from '@playwright/test';
test('接口请求页面', async ({ page }) => {
await page.goto('/Tool/API');
// /fake-api 正常返回。
await expect(page.locator('pre')).toContainText('http://dummyimage.com/200x200');
// // /npm-registry-api 正常返回。
// await expect(page.locator('#app')).toContainText('@vue/babel-plugin-jsx');
});