From 4a06b96b2eaea20968acebe97b01252f3d222ebe Mon Sep 17 00:00:00 2001 From: Felipe Cardoso Date: Thu, 27 Nov 2025 07:33:57 +0100 Subject: [PATCH] Update tests to reflect OAuth 2.0 and i18n features - Replaced outdated assertions with updated content for 'OAuth 2.0 + i18n Ready' across HeroSection, Key Features, and E2E tests. - Updated TechStack tests to validate inclusion of `next-intl` and `pytest`. - Refined badge and feature test cases to align with OAuth and internationalization updates. --- frontend/e2e/homepage.spec.ts | 2 +- frontend/tests/app/page.test.tsx | 13 +++++++------ frontend/tests/components/home/HeroSection.test.tsx | 2 +- 3 files changed, 9 insertions(+), 8 deletions(-) diff --git a/frontend/e2e/homepage.spec.ts b/frontend/e2e/homepage.spec.ts index 5940dd0..3e82121 100644 --- a/frontend/e2e/homepage.spec.ts +++ b/frontend/e2e/homepage.spec.ts @@ -102,7 +102,7 @@ test.describe('Homepage - Hero Section', () => { test('should display badge with key highlights', async ({ page }) => { await expect(page.getByText('MIT Licensed').first()).toBeVisible(); - await expect(page.getByText('Comprehensive Tests').first()).toBeVisible(); + await expect(page.getByText('OAuth 2.0 + i18n').first()).toBeVisible(); await expect(page.getByText('Pragmatic by Design').first()).toBeVisible(); }); diff --git a/frontend/tests/app/page.test.tsx b/frontend/tests/app/page.test.tsx index a303c3d..979e6cb 100644 --- a/frontend/tests/app/page.test.tsx +++ b/frontend/tests/app/page.test.tsx @@ -111,7 +111,8 @@ describe('HomePage', () => { it('renders badges', () => { render(); - expect(screen.getByText('Comprehensive Tests')).toBeInTheDocument(); + expect(screen.getByText('MIT Licensed')).toBeInTheDocument(); + expect(screen.getByText('OAuth 2.0 + i18n')).toBeInTheDocument(); expect(screen.getByText('Pragmatic by Design')).toBeInTheDocument(); }); }); @@ -125,8 +126,8 @@ describe('HomePage', () => { it('renders key features', () => { render(); expect(screen.getAllByText(/Clone & Deploy in < 5 minutes/i)[0]).toBeInTheDocument(); - expect(screen.getAllByText(/Comprehensive Test Suite/i)[0]).toBeInTheDocument(); - expect(screen.getAllByText(/12\+ Documentation Guides/i)[0]).toBeInTheDocument(); + expect(screen.getAllByText(/OAuth 2\.0 \+ Social Login/i)[0]).toBeInTheDocument(); + expect(screen.getAllByText(/i18n Ready \(EN, IT\)/i)[0]).toBeInTheDocument(); expect(screen.getAllByText(/Zero Commercial Dependencies/i)[0]).toBeInTheDocument(); }); }); @@ -199,10 +200,10 @@ describe('HomePage', () => { expect(screen.getAllByText('Next.js 15')[0]).toBeInTheDocument(); expect(screen.getAllByText('PostgreSQL')[0]).toBeInTheDocument(); expect(screen.getAllByText('TypeScript')[0]).toBeInTheDocument(); - expect(screen.getAllByText('Docker')[0]).toBeInTheDocument(); - expect(screen.getAllByText('TailwindCSS')[0]).toBeInTheDocument(); - expect(screen.getAllByText(/shadcn\/ui/i)[0]).toBeInTheDocument(); + expect(screen.getAllByText('OAuth 2.0')[0]).toBeInTheDocument(); + expect(screen.getAllByText('next-intl')[0]).toBeInTheDocument(); expect(screen.getAllByText('Playwright')[0]).toBeInTheDocument(); + expect(screen.getAllByText('pytest')[0]).toBeInTheDocument(); }); }); diff --git a/frontend/tests/components/home/HeroSection.test.tsx b/frontend/tests/components/home/HeroSection.test.tsx index 2fdbd18..eb6a2e2 100644 --- a/frontend/tests/components/home/HeroSection.test.tsx +++ b/frontend/tests/components/home/HeroSection.test.tsx @@ -47,7 +47,7 @@ describe('HeroSection', () => { ); expect(screen.getByText('MIT Licensed')).toBeInTheDocument(); - expect(screen.getByText('Comprehensive Tests')).toBeInTheDocument(); + expect(screen.getByText('OAuth 2.0 + i18n')).toBeInTheDocument(); expect(screen.getByText('Pragmatic by Design')).toBeInTheDocument(); });