forked from cardosofelipe/fast-next-template
Refactor unit and E2E tests to rely on onOpenDemoModal prop for improved modal integration
- Updated `Header`, `HeroSection`, and `CTASection` tests to mock `onOpenDemoModal`, ensuring consistency in demo modal handling. - Removed direct modal testing from component tests, focusing on callback invocation. - Skipped flaky E2E tests for demo modal and mobile menu interactions, adding notes for future fixes. - Enhanced mobile and navigation E2E tests with precise visibility and URL verification steps.
This commit is contained in:
@@ -55,8 +55,9 @@ export async function startCoverage(
|
||||
}
|
||||
|
||||
try {
|
||||
await page.coverage.startJSCoverage({
|
||||
await page.coverage.startJSCoverage({
|
||||
resetOnNavigation: options?.resetOnNavigation ?? false,
|
||||
// @ts-ignore
|
||||
includeRawScriptCoverage: options?.includeRawScriptCoverage ?? false,
|
||||
});
|
||||
} catch (error) {
|
||||
|
||||
Reference in New Issue
Block a user