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.
This commit is contained in:
Felipe Cardoso
2025-11-27 07:33:57 +01:00
parent 088c1725b0
commit 4a06b96b2e
3 changed files with 9 additions and 8 deletions

View File

@@ -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();
});

View File

@@ -111,7 +111,8 @@ describe('HomePage', () => {
it('renders badges', () => {
render(<Home />);
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(<Home />);
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();
});
});

View File

@@ -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();
});