Anchor About profile seniority to 2019 so the copy cannot age.
A counted duration would go stale; the approved wording keeps the same facts and lets the reader do the arithmetic. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -95,6 +95,35 @@ describe('service-led content contracts', () => {
|
|||||||
expect(de.pitch.profile.join('\n')).toContain('ausgesuchtes Fachnetzwerk');
|
expect(de.pitch.profile.join('\n')).toContain('ausgesuchtes Fachnetzwerk');
|
||||||
});
|
});
|
||||||
|
|
||||||
|
it('keeps About profile seniority anchored to 2019 instead of a computed duration', () => {
|
||||||
|
const duration = /\b(sieben|seven|\d+)\s+(Jahre|Jahren|years)\b/i;
|
||||||
|
|
||||||
|
for (const locale of APP_LOCALES) {
|
||||||
|
const about = SITE_CONTENT_DATA[locale].pages.about;
|
||||||
|
const profile = about.sections.find((section) => section.id === 'profile');
|
||||||
|
const blob = [
|
||||||
|
about.title,
|
||||||
|
about.description,
|
||||||
|
about.hero.headline,
|
||||||
|
about.hero.proof ?? '',
|
||||||
|
about.hero.playfulLine ?? '',
|
||||||
|
...(about.hero.body ?? []),
|
||||||
|
...about.sections.flatMap((section) => [section.headline, ...(section.body ?? [])]),
|
||||||
|
...about.ctas.map((cta) => cta.label),
|
||||||
|
].join('\n');
|
||||||
|
|
||||||
|
expect(profile?.body, `${locale} profile body`).toHaveLength(2);
|
||||||
|
expect(blob, locale).not.toMatch(duration);
|
||||||
|
}
|
||||||
|
|
||||||
|
expect(SITE_CONTENT_DATA.de.pages.about.sections[0].body?.[0]).toBe(
|
||||||
|
'Berufliche Erfahrung mit dem Bau und Betrieb von Webanwendungen seit 2019. Die Arbeit umfasst Fullstack-Entwicklung, DevOps, direkten Kundenkontakt vom ersten Anforderungsworkshop bis in den Produktivbetrieb sowie Personal- und Teamverantwortung.',
|
||||||
|
);
|
||||||
|
expect(SITE_CONTENT_DATA.en.pages.about.sections[0].body?.[0]).toBe(
|
||||||
|
'Professional work on building and operating web applications goes back to 2019. It covers fullstack development, DevOps, direct customer contact from the first requirements workshop through to production, and personnel and team responsibility.',
|
||||||
|
);
|
||||||
|
});
|
||||||
|
|
||||||
it('keeps device and workstation wording out of headings, nav labels and offering titles', () => {
|
it('keeps device and workstation wording out of headings, nav labels and offering titles', () => {
|
||||||
for (const locale of APP_LOCALES) {
|
for (const locale of APP_LOCALES) {
|
||||||
const site = SITE_CONTENT_DATA[locale];
|
const site = SITE_CONTENT_DATA[locale];
|
||||||
|
|||||||
@@ -106,7 +106,7 @@ export const ABOUT_DE: PageCopy = {
|
|||||||
id: 'profile',
|
id: 'profile',
|
||||||
headline: 'Berufliches Profil',
|
headline: 'Berufliches Profil',
|
||||||
body: [
|
body: [
|
||||||
'Rund sieben Jahre berufliche Erfahrung mit dem Bau und Betrieb von Webanwendungen. Die Arbeit umfasst Fullstack-Entwicklung, DevOps, direkten Kundenkontakt vom ersten Anforderungsworkshop bis in den Produktivbetrieb sowie Personal- und Teamverantwortung.',
|
'Berufliche Erfahrung mit dem Bau und Betrieb von Webanwendungen seit 2019. Die Arbeit umfasst Fullstack-Entwicklung, DevOps, direkten Kundenkontakt vom ersten Anforderungsworkshop bis in den Produktivbetrieb sowie Personal- und Teamverantwortung.',
|
||||||
'Heimspiel ist Java (8/11/17/21, Maven, Spring Boot, Spring Data JPA, WebFlux, JUnit). Dazu kommen C# / .NET Core / .NET 8 (ASP.NET Core, Entity Framework, xUnit) und Angular (TypeScript, RxJS-zeitige SPA-Arbeit, Ngrx, SCSS).',
|
'Heimspiel ist Java (8/11/17/21, Maven, Spring Boot, Spring Data JPA, WebFlux, JUnit). Dazu kommen C# / .NET Core / .NET 8 (ASP.NET Core, Entity Framework, xUnit) und Angular (TypeScript, RxJS-zeitige SPA-Arbeit, Ngrx, SCSS).',
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -106,7 +106,7 @@ export const ABOUT_EN: PageCopy = {
|
|||||||
id: 'profile',
|
id: 'profile',
|
||||||
headline: 'Professional profile',
|
headline: 'Professional profile',
|
||||||
body: [
|
body: [
|
||||||
'About seven years of professional experience building and operating web applications. The work covers fullstack development, DevOps, direct customer contact from the first requirements workshop through to production, and personnel and team responsibility.',
|
'Professional work on building and operating web applications goes back to 2019. It covers fullstack development, DevOps, direct customer contact from the first requirements workshop through to production, and personnel and team responsibility.',
|
||||||
'Home ground is Java (8/11/17/21, Maven, Spring Boot, Spring Data JPA, WebFlux, JUnit). Alongside that sit C# / .NET Core / .NET 8 (ASP.NET Core, Entity Framework, xUnit) and Angular (TypeScript, RxJS-era SPA work, Ngrx, SCSS).',
|
'Home ground is Java (8/11/17/21, Maven, Spring Boot, Spring Data JPA, WebFlux, JUnit). Alongside that sit C# / .NET Core / .NET 8 (ASP.NET Core, Entity Framework, xUnit) and Angular (TypeScript, RxJS-era SPA work, Ngrx, SCSS).',
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user