From 770665cfc044eac7be99248c12249b927f37f860 Mon Sep 17 00:00:00 2001 From: parsa aghaei Date: Tue, 25 Aug 2026 17:48:33 +0330 Subject: [PATCH] test(e2e): complete cross-platform coverage and hardening for security, admin, and cart suites --- backend/scripts/generate-openapi.ts | 1 + backend/scripts/seo-backfill.ts | 1 + .../components/ContactFormClient.tsx | 1 + package-lock.json | 396 +++++++++++++++++- package.json | 4 +- test-coverage-map.md | 4 + tests/e2e/admin/admin-blogs-crud.spec.ts | 19 + tests/e2e/security/xss-ratelimit.spec.ts | 41 +- tests/e2e/storefront/cart-operations.spec.ts | 14 +- 9 files changed, 459 insertions(+), 22 deletions(-) diff --git a/backend/scripts/generate-openapi.ts b/backend/scripts/generate-openapi.ts index 4c4a340..22e82bf 100644 --- a/backend/scripts/generate-openapi.ts +++ b/backend/scripts/generate-openapi.ts @@ -1,3 +1,4 @@ +import process from 'node:process'; import { NestFactory } from '@nestjs/core'; import { AppModule } from '../src/app.module'; import { SwaggerModule, DocumentBuilder } from '@nestjs/swagger'; diff --git a/backend/scripts/seo-backfill.ts b/backend/scripts/seo-backfill.ts index 8c6f6a7..090d568 100644 --- a/backend/scripts/seo-backfill.ts +++ b/backend/scripts/seo-backfill.ts @@ -1,3 +1,4 @@ +import process from 'node:process'; import { PrismaClient } from '@prisma/client'; const prisma = new PrismaClient(); diff --git a/frontend/application/components/ContactFormClient.tsx b/frontend/application/components/ContactFormClient.tsx index b40735d..946ff9e 100644 --- a/frontend/application/components/ContactFormClient.tsx +++ b/frontend/application/components/ContactFormClient.tsx @@ -243,6 +243,7 @@ export default function ContactFormClient() {