fix: check for generic error message instead of specific server error
This commit is contained in:
@@ -113,6 +113,6 @@ test.describe('表单验证测试', () => {
|
|||||||
|
|
||||||
await page.waitForTimeout(3000);
|
await page.waitForTimeout(3000);
|
||||||
const pageContent = await page.content();
|
const pageContent = await page.content();
|
||||||
expect(pageContent).toContain('服务器错误');
|
expect(pageContent).toContain('提交失败');
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user