Integrate Prisma for content; enhance SEO, i18n, and deployment workflows

Co-authored-by: dennis <dennis@konkol.net>
This commit is contained in:
Cursor Agent
2026-01-12 15:27:35 +00:00
parent f1cc398248
commit 423a2af938
38 changed files with 757 additions and 629 deletions

View File

@@ -20,7 +20,7 @@ test.describe('Hydration Tests', () => {
});
// Navigate to home page
await page.goto('/', { waitUntil: 'networkidle' });
await page.goto('/en', { waitUntil: 'networkidle' });
await page.waitForLoadState('domcontentloaded');
// Check for hydration errors
@@ -51,7 +51,7 @@ test.describe('Hydration Tests', () => {
}
});
await page.goto('/');
await page.goto('/en');
await page.waitForLoadState('networkidle');
// Check for duplicate key warnings
@@ -71,11 +71,11 @@ test.describe('Hydration Tests', () => {
}
});
await page.goto('/', { waitUntil: 'networkidle' });
await page.goto('/en', { waitUntil: 'networkidle' });
await page.waitForLoadState('domcontentloaded');
// Navigate to projects page via link
const projectsLink = page.locator('a[href="/projects"], a[href*="projects"]').first();
const projectsLink = page.locator('a[href*="/projects"]').first();
if (await projectsLink.count() > 0) {
await projectsLink.click();
await page.waitForLoadState('domcontentloaded');
@@ -90,7 +90,7 @@ test.describe('Hydration Tests', () => {
});
test('Server and client HTML match', async ({ page }) => {
await page.goto('/');
await page.goto('/en');
// Get initial HTML
const initialHTML = await page.content();
@@ -108,7 +108,7 @@ test.describe('Hydration Tests', () => {
});
test('Interactive elements work after hydration', async ({ page }) => {
await page.goto('/');
await page.goto('/en');
await page.waitForLoadState('networkidle');
// Try to find and click interactive elements