fix: check for form validation error instead of API error
This commit is contained in:
@@ -112,7 +112,7 @@ test.describe('表单验证测试', () => {
|
||||
await contactPage.submitForm();
|
||||
|
||||
await page.waitForTimeout(3000);
|
||||
const pageContent = await page.content();
|
||||
expect(pageContent).toContain('提交失败');
|
||||
const errorMessage = await contactPage.getFormErrorMessage();
|
||||
expect(errorMessage).toBeTruthy();
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user