fix: 更新接口请求页面的 URL 路径
This commit is contained in:
@ -1,7 +1,7 @@
|
|||||||
import { expect, test } from '@playwright/test';
|
import { expect, test } from '@playwright/test';
|
||||||
|
|
||||||
test('接口请求页面', async ({ page }) => {
|
test('接口请求页面', async ({ page }) => {
|
||||||
await page.goto('/api');
|
await page.goto('/Tool/API');
|
||||||
// /fake-api 正常返回。
|
// /fake-api 正常返回。
|
||||||
await expect(page.locator('pre')).toContainText('http://dummyimage.com/200x200');
|
await expect(page.locator('pre')).toContainText('http://dummyimage.com/200x200');
|
||||||
// // /npm-registry-api 正常返回。
|
// // /npm-registry-api 正常返回。
|
||||||
|
Reference in New Issue
Block a user