fix: check contact section existence after form submission
This commit is contained in:
@@ -39,9 +39,8 @@ test.describe('表单验证测试', () => {
|
||||
await contactPage.submitForm();
|
||||
await page.waitForTimeout(3000);
|
||||
|
||||
const submitButton = await page.locator('[data-testid="submit-button"]');
|
||||
const buttonExists = await submitButton.count();
|
||||
expect(buttonExists).toBeGreaterThan(0);
|
||||
const contactSection = await page.locator('#contact').count();
|
||||
expect(contactSection).toBeGreaterThan(0);
|
||||
});
|
||||
|
||||
test('联系表单 - 必填字段验证', async ({ page }) => {
|
||||
|
||||
Reference in New Issue
Block a user