web: Boost als „Gebuchte Platzierung“ mit Erklärung gekennzeichnet
Label „Gebuchte Platzierung“ (en „Booked placement“) statt „Top-Platzierung“ auf Start- und Branchenseite. Die Erklärung „Das Unternehmen hat diesen Platz gebucht …“ erscheint am Desktop beim Überfahren und auf Mobil per Tipp, ohne den umgebenden Link zu öffnen; Screenreader lesen sie mit. Kopfzeile über dem Aufmacher „Aktuell“ statt „Top-Auswahl“ (automatische Auswahl, keine Redaktion). Preisseite nennt die Kennzeichnung (Rechtspaket U10). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
8124d20946
commit
2150d4b7ae
12 changed files with 72 additions and 27 deletions
|
|
@ -17,7 +17,7 @@ use Tests\TestCase;
|
|||
/**
|
||||
* Boost-Platzierung (Decision-Update §2.2): geboostete PMs besetzen die
|
||||
* Top-Positionen auf Start- und Branchenseite vor der Chronologie und werden
|
||||
* als „Top-Platzierung" markiert.
|
||||
* als „Gebuchte Platzierung" markiert.
|
||||
*/
|
||||
function boostPlacementFixture(): array
|
||||
{
|
||||
|
|
@ -69,10 +69,10 @@ test('a boosted release takes the homepage lead ahead of newer releases and is l
|
|||
// Die verdrängte neueste Meldung rückt in die Seitenleiste nach.
|
||||
->and($data['sideReleases']->modelKeys())->toContain($newest->id);
|
||||
|
||||
// Badge „Top-Platzierung" hängt am Hero-Lead (nach dem Ticker-Vorkommen).
|
||||
// Badge „Gebuchte Platzierung" hängt am Hero-Lead (nach dem Ticker-Vorkommen).
|
||||
$this->get('https://presseecho.test/de')
|
||||
->assertSuccessful()
|
||||
->assertSeeTextInOrder(['Top-Platzierung', 'Geboostete aeltere Meldung']);
|
||||
->assertSeeTextInOrder(['Gebuchte Platzierung', 'Geboostete aeltere Meldung']);
|
||||
});
|
||||
|
||||
test('an expired boost does not influence the homepage placement', function () {
|
||||
|
|
@ -87,7 +87,7 @@ test('an expired boost does not influence the homepage placement', function () {
|
|||
|
||||
$this->get('https://presseecho.test/de')
|
||||
->assertSuccessful()
|
||||
->assertDontSeeText('Top-Platzierung');
|
||||
->assertDontSeeText('Gebuchte Platzierung');
|
||||
});
|
||||
|
||||
test('booking a boost invalidates the cached start and category pages immediately', function () {
|
||||
|
|
@ -101,7 +101,7 @@ test('booking a boost invalidates the cached start and category pages immediatel
|
|||
expect(app(HomePageData::class)->build(Portal::Presseecho)['leadRelease']->id)->toBe($newest->id);
|
||||
$this->get('https://presseecho.test/de/category/energie-klima')
|
||||
->assertSuccessful()
|
||||
->assertDontSeeText('Top-Platzierung');
|
||||
->assertDontSeeText('Gebuchte Platzierung');
|
||||
|
||||
app(BoostService::class)->boost($owner, $boosted, 7);
|
||||
|
||||
|
|
@ -109,7 +109,7 @@ test('booking a boost invalidates the cached start and category pages immediatel
|
|||
expect(app(HomePageData::class)->build(Portal::Presseecho)['leadRelease']->id)->toBe($boosted->id);
|
||||
$this->get('https://presseecho.test/de/category/energie-klima')
|
||||
->assertSuccessful()
|
||||
->assertSeeText('Top-Platzierung');
|
||||
->assertSeeText('Gebuchte Platzierung');
|
||||
});
|
||||
|
||||
test('a boosted release leads its category page and is labelled', function () {
|
||||
|
|
@ -123,7 +123,7 @@ test('a boosted release leads its category page and is labelled', function () {
|
|||
$this->get('https://presseecho.test/de/category/energie-klima')
|
||||
->assertSuccessful()
|
||||
->assertSeeTextInOrder([
|
||||
'Top-Platzierung',
|
||||
'Gebuchte Platzierung',
|
||||
'Geboostete aeltere Meldung',
|
||||
'Neueste unbezahlte Meldung',
|
||||
]);
|
||||
|
|
@ -138,7 +138,7 @@ test('a category boost leads its category page but never the homepage', function
|
|||
// Branchenseite: Kategorie-Boost besetzt den Lead-Slot.
|
||||
$this->get('https://presseecho.test/de/category/energie-klima')
|
||||
->assertSuccessful()
|
||||
->assertSeeTextInOrder(['Top-Platzierung', 'Geboostete aeltere Meldung']);
|
||||
->assertSeeTextInOrder(['Gebuchte Platzierung', 'Geboostete aeltere Meldung']);
|
||||
|
||||
// Startseite: bleibt bei der Chronologie — der Kategorie-Boost kauft
|
||||
// sie nicht mit (Entscheidung 13.07.).
|
||||
|
|
@ -189,7 +189,7 @@ test('booking a category boost invalidates the category page but keeps the homep
|
|||
expect(app(HomePageData::class)->build(Portal::Presseecho)['leadRelease']->id)->toBe($newest->id);
|
||||
$this->get('https://presseecho.test/de/category/energie-klima')
|
||||
->assertSuccessful()
|
||||
->assertDontSeeText('Top-Platzierung');
|
||||
->assertDontSeeText('Gebuchte Platzierung');
|
||||
|
||||
app(BoostService::class)->boost($owner, $boosted, 7, BoostPlacement::Category);
|
||||
|
||||
|
|
@ -198,5 +198,24 @@ test('booking a category boost invalidates the category page but keeps the homep
|
|||
expect(Cache::has(webPageCacheKey('web.home.presseecho.de')))->toBeTrue();
|
||||
$this->get('https://presseecho.test/de/category/energie-klima')
|
||||
->assertSuccessful()
|
||||
->assertSeeText('Top-Platzierung');
|
||||
->assertSeeText('Gebuchte Platzierung');
|
||||
});
|
||||
|
||||
test('the booked placement label explains itself and the hero no longer claims an editorial pick', function () {
|
||||
/** @var TestCase $this */
|
||||
['boosted' => $boosted] = boostPlacementFixture();
|
||||
|
||||
Boost::factory()->for($boosted)->create();
|
||||
|
||||
// Erklärung am Label (Tooltip/Tipp) und als Screenreader-Text; die
|
||||
// Kopfzeile des Aufmachers nennt keine Auswahl mehr, sondern „Aktuell".
|
||||
$this->get('https://presseecho.test/de')
|
||||
->assertSuccessful()
|
||||
->assertSee('data-boosted-label', false)
|
||||
->assertSeeText('Das Unternehmen hat diesen Platz gebucht. Der Inhalt ist eine Pressemitteilung des Unternehmens.')
|
||||
->assertSeeText('Aktuell')
|
||||
->assertDontSeeText('Top-Auswahl');
|
||||
|
||||
expect(__('web.shared.boosted_placement', [], 'en'))->toBe('Booked placement')
|
||||
->and(__('web.hero.latest', [], 'en'))->toBe('Latest');
|
||||
});
|
||||
|
|
|
|||
|
|
@ -25,6 +25,7 @@ test('the pricing page renders the editorial shell with real plans, single pm an
|
|||
->assertSeeText('Add-ons & Einzelkosten')
|
||||
->assertSeeText('Extra-Pressemitteilung')
|
||||
->assertSeeText('Boost-Platzierung')
|
||||
->assertSeeText('Geboostete Meldungen sind als gebuchte Platzierung gekennzeichnet.')
|
||||
->assertSeeText('Veröffentlichungsnachweis (PDF)')
|
||||
->assertSeeText('Credit-Pakete')
|
||||
->assertSeeText('7 Tage') // boost 7d aus config
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue