Files
novalon-website/test-framework/e2e/contact-page.spec.ts
T
zhangxiang 602ed6a671 test(hooks): finalize mutation test improvements and release acceptance
- Raise use-swipe-gesture mutation score to 66.13% (target 65%+)
- Maintain use-reduced-motion mutation score at 76.32% (target 50%+)
- Fix use-reduced-motion.ts ESLint set-state-in-effect warning
- Add UJ-10 deep searcher journey (category browse → article read → content discovery)
- Add 40 new test files (analytics, detail, sections, ui, lib components)
- Update test-strategy-plan.md to v2.0 (sync test count to 1591)
- Sync README.md with final release metrics

Quality gates: TS 0 errors, ESLint 0 errors, 121 suites / 1591 tests passed
2026-08-02 19:39:27 +08:00

27 lines
898 B
TypeScript

// @ts-nocheck
import { test, expect } from '@playwright/test';
import { ContactPage } from '../../test-framework/shared/pages';
import { formData } from '../../test-framework/shared/config/test-data';
test.describe('联系页面测试', () => {
test('应该能够填写联系表单', async ({ page }) => {
const contactPage = new ContactPage(page);
await contactPage.navigate();
await contactPage.fillContactForm(formData.valid);
const name = await page.locator('#name').inputValue();
expect(name).toBe(formData.valid.name);
});
test('应该显示成功消息', async ({ page }) => {
const contactPage = new ContactPage(page);
await contactPage.navigate();
await contactPage.fillContactForm(formData.valid);
await contactPage.submitForm();
await expect(page.locator('.success-message')).toBeVisible({ timeout: 5000 });
});
});