Spoke-Frontend-Audit: Fake-Inhalte raus, Newsletter-Rueckbau, echte Boersendaten, EN-Lokalisierung
Frontend-Umbau (Kevin, 06.07.2026), Ergebnis des businessportal24-Audits: - Fake-Anzeigen und Mock-/Fallback-Daten entfernt (focus-ad, feed-ad, highlight-card, press-release-card, featured-releases, press-releases-grid); Sektionen rendern nur noch mit echten Daten oder gar nicht - Newsletter-Strip und Newsletter-Box zurueckgebaut (Feature nachgelagert, vor Reaktivierung DOI-Flow noetig) - Echte Boersendaten: MarketDataService (Yahoo-Finance-Quotes, config/market.php, Cache) + market:refresh alle 15 Min. im Scheduler; live-ticker blendet sich ohne Daten aus - EN-Lokalisierung der Kern-Seiten via lang/de/web.php + lang/en/web.php; Carbon-Locale folgt app()->getLocale() - Web-Tests auf den neuen Frontend-Stand nachgezogen (Suite: 993 gruen) Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
parent
3320aaaa85
commit
bfad13af7d
67 changed files with 1735 additions and 1521 deletions
|
|
@ -7,8 +7,32 @@ use App\Models\Company;
|
|||
use App\Models\PressRelease;
|
||||
use Tests\TestCase;
|
||||
|
||||
test('presseecho homepage renders the editorial shell', function () {
|
||||
test('presseecho homepage renders the editorial shell with real data', function () {
|
||||
/** @var TestCase $this */
|
||||
$category = Category::factory()->create([
|
||||
'portal' => Portal::Presseecho,
|
||||
]);
|
||||
$category->translations()->create([
|
||||
'locale' => 'de',
|
||||
'name' => 'Energie & Klima',
|
||||
'slug' => 'energie-klima',
|
||||
]);
|
||||
|
||||
$company = Company::factory()->presseecho()->create([
|
||||
'name' => 'Muster Energie GmbH',
|
||||
]);
|
||||
|
||||
PressRelease::factory()
|
||||
->published()
|
||||
->forPortal(Portal::Presseecho)
|
||||
->for($category)
|
||||
->for($company)
|
||||
->create([
|
||||
'title' => 'Shell-Test Meldung',
|
||||
'slug' => 'shell-test-meldung',
|
||||
'published_at' => now()->subHour(),
|
||||
]);
|
||||
|
||||
$this->get('https://presseecho.test/de')
|
||||
->assertSuccessful()
|
||||
->assertSee('presseecho', false)
|
||||
|
|
@ -16,14 +40,28 @@ test('presseecho homepage renders the editorial shell', function () {
|
|||
->assertSeeText('Aktuelle Meldungen')
|
||||
->assertSeeText('Im Fokus')
|
||||
->assertSeeText('Aktive Newsrooms')
|
||||
->assertSeeText('Bleiben Sie informiert')
|
||||
->assertSeeText('Veröffentlichen Sie Ihre Pressemitteilung')
|
||||
->assertSeeText('Redaktioneller Qualitätsstandard')
|
||||
->assertSeeText('Ihre Pressemitteilung, qualitätsgeprüft veröffentlicht')
|
||||
->assertSeeText('Konto anlegen')
|
||||
->assertSeeText('Unser Qualitätsstandard')
|
||||
->assertDontSeeText('redaktionell geprüft')
|
||||
->assertSeeText('AD-HOC')
|
||||
->assertSeeText('Branchen-Index')
|
||||
->assertSeeText('Heute im Fokus');
|
||||
});
|
||||
|
||||
test('presseecho homepage hides data sections and shows the empty feed state without content', function () {
|
||||
/** @var TestCase $this */
|
||||
$this->get('https://presseecho.test/de')
|
||||
->assertSuccessful()
|
||||
->assertSeeText('Aktuelle Meldungen')
|
||||
->assertSeeText('Aktuell liegen keine Meldungen vor')
|
||||
->assertDontSeeText('Im Fokus')
|
||||
->assertDontSeeText('Aktive Newsrooms')
|
||||
->assertDontSeeText('Branchen-Index')
|
||||
->assertDontSeeText('Heute im Fokus');
|
||||
});
|
||||
|
||||
test('presseecho homepage feed only shows published presseecho content', function () {
|
||||
/** @var TestCase $this */
|
||||
$category = Category::factory()->create([
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue