Display Module 13-05-2026
This commit is contained in:
parent
6a65354f4c
commit
9262132325
41 changed files with 496 additions and 334 deletions
|
|
@ -36,6 +36,20 @@ test('display version list renders for authenticated users', function () {
|
|||
$response->assertSeeLivewire(DisplayVersionList::class);
|
||||
});
|
||||
|
||||
test('display dashboard documentation describes current workflow', function () {
|
||||
$user = User::factory()->create();
|
||||
|
||||
$this->actingAs($user);
|
||||
|
||||
$this->get(route('admin.cms.display-dashboard'))
|
||||
->assertSuccessful()
|
||||
->assertSee('Live und Entwurf')
|
||||
->assertSee('Meta-Einstellungen pflegen')
|
||||
->assertSee('SVG-Logos')
|
||||
->assertSee('/storage/...')
|
||||
->assertSee('Entwurf in der 9:16-Vorschau');
|
||||
});
|
||||
|
||||
test('can create a display version', function () {
|
||||
$user = User::factory()->create();
|
||||
|
||||
|
|
@ -104,19 +118,6 @@ test('display version editor renders with correct version data', function () {
|
|||
$response->assertSeeLivewire(DisplayVersionEditor::class);
|
||||
});
|
||||
|
||||
test('old display version routes redirect to module routes', function () {
|
||||
$user = User::factory()->create();
|
||||
$version = DisplayVersion::factory()->create();
|
||||
|
||||
$this->actingAs($user);
|
||||
|
||||
$this->get(route('admin.cms.display-versions'))
|
||||
->assertRedirect(route('admin.cms.display-modules'));
|
||||
|
||||
$this->get(route('admin.cms.display-version-edit', $version))
|
||||
->assertRedirect(route('admin.cms.display-module-edit', $version));
|
||||
});
|
||||
|
||||
test('display module editor renders module preview', function () {
|
||||
$user = User::factory()->create();
|
||||
$version = DisplayVersion::factory()->create(['name' => 'Preview Modul']);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue