Nenne die Fassungsnummer im Titel der Dialoge Freigeben und Deaktivieren.
CI Feature / test (push) Successful in 59s
Deploy Test / test (push) Successful in 53s
Deploy Test / deploy (push) Successful in 24s

Freigeben ist jetzt an der Fassung, unter „Weitere Aktionen“ und im Kopf
erreichbar; der Titel „Fassung 3 freigeben“ bzw. „Fassung 2 deaktivieren“
zeigt, welche Fassung betroffen ist.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
LarsandClaude Opus 5.5 committed 2026-11-20 07:36:38 +01:00
1 parent 4847303a6f
commit 7b712e0c45
2 files changed
+16 -3

No files matched your search

+7 -1
View File
@@ -665,7 +665,7 @@ public function test_media_versions_are_listed_left_and_the_chosen_one_is_shown_
$content = app(ContentService::class);
$film = $content->createElement('film', 'film', 'Lara im Park');
$first = $content->publishElementVersion($film, 'Erste Filmfassung');
$content->publishElementVersion($film, 'Zweite Filmfassung');
$second = $content->publishElementVersion($film, 'Zweite Filmfassung');
$content->block($first, 'Alter Schnitt');
$draft = $content->draftElementVersion($film, 'Dritte Filmfassung');
@@ -678,6 +678,12 @@ public function test_media_versions_are_listed_left_and_the_chosen_one_is_shown_
->assertSet('fassung', $draft->id)
->assertSee('Entwurf, noch nicht freigegeben')
->assertSee('Diese Fassung freigeben')
->mountAction('releaseVersion', ['version' => $draft->id])
->tap(fn ($component) => $this->assertSame('Fassung 3 freigeben', $component->instance()->getMountedAction()->getModalHeading()))
->unmountAction()
->mountAction('deactivate', ['version' => $second->id])
->tap(fn ($component) => $this->assertSame('Fassung 2 deaktivieren', $component->instance()->getMountedAction()->getModalHeading()))
->unmountAction()
->call('showVersion', $first->id)
->assertSee('Begründung: Alter Schnitt')
->assertDontSee('Diese Fassung freigeben');