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:
@@ -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();
|
||||
});
|
||||
|
||||
|
||||
@@ -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();
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
@@ -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();
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user