Nenne die Fassungsnummer im Titel der Dialoge Freigeben und Deaktivieren.
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:
1 parent
4847303a6f
commit
7b712e0c45
2 files changed
+16
-3
No files matched your search
@@ -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');
|
||||
|
||||
Reference in new issue
Block a user