T13: Melde-Links sichtbar unter jeder Pressemitteilung
Unter dem Artikelinhalt steht jetzt eine eigene Zeile mit "Inhalt melden" und "Eigene Daten entfernen" (inkl. Kostenlos-Hinweis) — bisher waren die Wege nur in der Sidebar-Box "Weiterfuehrend" auffindbar. Erfuellt die DSA-Anforderung eines leicht zugaenglichen Meldewegs direkt am Inhalt. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
parent
0bec71ffa5
commit
61a677aa0b
2 changed files with 37 additions and 0 deletions
|
|
@ -72,6 +72,29 @@ test('businessportal24 release detail renders the editorial shell with real data
|
|||
->assertSeeText('Wasserstoff');
|
||||
});
|
||||
|
||||
test('release detail shows prominent report links below the article', function () {
|
||||
/** @var TestCase $this */
|
||||
// T13 (Meldeverfahren): Die Melde-Links stehen sichtbar unter jeder
|
||||
// Mitteilung — nicht nur in der Sidebar-Box „Weiterführend".
|
||||
[$category, $company] = detailCategoryAndCompany(Portal::Businessportal24);
|
||||
|
||||
$release = PressRelease::factory()
|
||||
->published()
|
||||
->forPortal(Portal::Businessportal24)
|
||||
->for($category)
|
||||
->for($company)
|
||||
->create(['published_at' => now()->subDay()]);
|
||||
|
||||
$this->get('https://businessportal24.test/de/press-release/'.$release->slug)
|
||||
->assertSuccessful()
|
||||
->assertSeeText('Sie haben ein rechtliches Anliegen zu dieser Mitteilung?')
|
||||
->assertSeeText('Inhalt melden')
|
||||
->assertSeeText('Eigene Daten entfernen')
|
||||
->assertSeeText('Meldungen sind kostenlos.')
|
||||
->assertSee(route('legal-request.create', ['slug' => $release->slug, 'type' => 'report']), false)
|
||||
->assertSee(route('legal-request.create', ['slug' => $release->slug, 'type' => 'dsgvo']), false);
|
||||
});
|
||||
|
||||
test('release detail counts a hit', function () {
|
||||
/** @var TestCase $this */
|
||||
[$category, $company] = detailCategoryAndCompany(Portal::Businessportal24);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue