Halte deaktivierte Bestandteile im Aufbau, damit die Freigabe sie anzeigt.
Deploy Test / test (push) Failing after 9s
Deploy Test / deploy (push) Skipped

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
LarsandCursor committed 2026-11-17 13:34:38 +01:00
1 parent d12ba67b45
commit dd67741f35
7 files changed
+93 -26

No files matched your search

+19
View File
@@ -779,6 +779,8 @@ public function test_release_reviews_the_structure_and_keeps_other_references():
->test(EditCourse::class, ['record' => $program->id])
->call('openPicker')
->assertSee('Untermodul')
->set('pickerSelected', 'composition-draft:'.$child->id)
->assertSee('gemeinsame Freigabe')
->call('addPart', 'composition-draft:'.$child->id)
->call('armRelease')
->assertSee('Es entsteht Fassung 1')
@@ -793,6 +795,9 @@ public function test_release_reviews_the_structure_and_keeps_other_references():
$this->assertSame(1, $other->composition->fresh()->versions()->count());
$this->assertSame($film->id, $other->fresh()->members()->first()->content_element_version_id);
$held = $content->createComposition('Behält den Hinweis', CompositionKind::Uebung);
$content->publishComposition($held, [['role' => 'Hinweis', 'target' => $soonBlocked]]);
$broken = $content->createComposition('Mit Fehler', CompositionKind::Uebung);
$brokenEditor = Livewire::actingAs($editor, 'staff')
->test(EditExercise::class, ['record' => $broken->id])
@@ -807,6 +812,20 @@ public function test_release_reviews_the_structure_and_keeps_other_references():
$this->assertSame(0, $broken->fresh()->versions()->count());
$this->assertSame(ContentVersionStatus::Gesperrt, $soonBlocked->fresh()->status);
Livewire::actingAs($editor, 'staff')
->test(EditExercise::class, ['record' => $broken->id])
->assertSee('Alter Hinweis')
->assertSee('deaktiviert');
Livewire::actingAs($editor, 'staff')
->test(EditExercise::class, ['record' => $held->id])
->assertSee('Alter Hinweis')
->assertSee('deaktiviert')
->set('learningGoal', 'Der Hinweis bleibt sichtbar')
->call('armRelease')
->assertSee('Diese Fassung ist deaktiviert')
->assertSee('content-elements/'.$soonBlocked->content_element_id);
$this->assertSame(1, $other->composition->fresh()->versions()->count());
}