Files
vue-ts-example/tests/e2e/api-page.spec.ts
mini2024 2b7186ef69
All checks were successful
/ depcheck (push) Successful in 2m19s
/ playwright (push) Successful in 1m45s
/ surge (push) Successful in 2m48s
/ build-and-deploy-to-vercel (push) Successful in 3m10s
chore: eslint 配置
2025-03-05 00:57:59 +08:00

10 lines
367 B
TypeScript

import { expect, test } from '@playwright/test';
test('接口请求页面', async ({ page }) => {
await page.goto('/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');
});