Add API page and related routes
All checks were successful
CI / build-and-deploy (push) Successful in 5m58s

This commit is contained in:
严浩
2024-09-27 18:06:59 +08:00
parent 1380e280d4
commit 8143cf2e07
8 changed files with 382 additions and 5 deletions

View File

@ -0,0 +1,9 @@
import { test, expect } 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');
});