fix: payload rich text undefined data bug causing fallback rendering and 404 assets

Former-commit-id: c93558b9f6125760932bf983c9a68dbf17ebad55
This commit is contained in:
2026-04-28 23:23:21 +02:00
parent d6e43357da
commit e57661a586
2 changed files with 6 additions and 6 deletions

View File

@@ -31,9 +31,9 @@ describe('E2E Navigation & Content', () => {
const h1Text = await page.evaluate(() => document.querySelector('h1')?.textContent);
expect(h1Text).toBeTruthy();
// Check for specific German text that should be on the homepage
// e.g., "Kompetenzen" or a known Hero text
// Check for specific German text that should be seeded from CMS
const bodyText = await page.evaluate(() => document.body.innerText);
expect(bodyText).toContain('ENERGIE & KOMMUNIKATION VERNETZEN');
expect(bodyText).toContain('Kontakt');
});
@@ -44,9 +44,9 @@ describe('E2E Navigation & Content', () => {
const htmlLang = await page.evaluate(() => document.documentElement.lang);
expect(htmlLang).toBe('en');
// Check for specific English text
// Check for specific English text from CMS
const bodyText = await page.evaluate(() => document.body.innerText);
// Assuming "Unternehmen" translates to "COMPANY"
expect(bodyText).toContain('NETWORKING ENERGY & COMMUNICATION');
expect(bodyText).toContain('COMPANY');
});