content: Eventfotografie und Leistungswege schärfen
This commit is contained in:
1 parent
7bf2ff19d8
commit
878f9778b6
4 files changed
+122
-49
No files matched your search
@@ -180,6 +180,37 @@ if (wants('sport')) {
|
||||
});
|
||||
}
|
||||
|
||||
if (wants('event')) {
|
||||
check('Eventseite hat eindeutigen H1 und substanziellen Inhalt', () => {
|
||||
const html = pageHtml('eventfotografie.html');
|
||||
assert.equal(count(html, /<h1\b/g), 1);
|
||||
assert.ok(html.includes('<h1 class="hero-title">Eventfotograf für Hamburg und deutschlandweite Veranstaltungen</h1>'));
|
||||
const words = visibleWordCount(html);
|
||||
assert.ok(words >= 500 && words <= 800, `Wortzahl ${words} liegt außerhalb 500–800`);
|
||||
});
|
||||
|
||||
check('Eventseite nennt Nutzen, Referenzen und Deutschland', () => {
|
||||
const html = pageHtml('eventfotografie.html');
|
||||
for (const term of ['Hamburg', 'deutschlandweit', 'PR', 'Social Media', 'YES!CON 2026', 'OMR x yes!wecancer']) {
|
||||
assert.ok(html.includes(term), `${term} fehlt`);
|
||||
}
|
||||
assert.ok(html.includes('"serviceType":"Eventfotografie"'));
|
||||
assert.ok(html.includes('"@type":"Country","name":"Deutschland"'));
|
||||
});
|
||||
|
||||
check('Startseite verlinkt beide Leistungsseiten', () => {
|
||||
const html = pageHtml('index.html');
|
||||
assert.ok(html.includes('href="./sportfotografie"'));
|
||||
assert.ok(html.includes('href="./eventfotografie"'));
|
||||
});
|
||||
|
||||
check('Leistungs-Hub verlinkt beide Leistungsseiten', () => {
|
||||
const html = pageHtml('leistungen.html');
|
||||
assert.ok(html.includes('href="./sportfotografie"'));
|
||||
assert.ok(html.includes('href="./eventfotografie"'));
|
||||
});
|
||||
}
|
||||
|
||||
if (failures.length) {
|
||||
console.error(`\n${failures.length} Prüfung(en) fehlgeschlagen.`);
|
||||
process.exit(1);
|
||||
|
||||
Reference in new issue
Block a user