dev/entwicklung.md neu: Welten Interior/Immobilien, Seiten und Bausteine der Website, CMS im Portal, Store Displays mit Playlists, Betrieb (Git-Deploy, Monitoring), Datenbank, Tests, offene Punkte. Die Doku-Seite stellt Tabellen jetzt lesbar dar. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
31 lines
847 B
PHP
31 lines
847 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
use App\Models\User;
|
|
use Livewire\Volt\Volt;
|
|
|
|
beforeEach(function () {
|
|
$portalDomain = config('domains.domain_portal');
|
|
url()->forceRootUrl('https://'.$portalDomain);
|
|
});
|
|
|
|
test('authenticated user can render admin documentation volt page', function () {
|
|
$user = User::factory()->create();
|
|
|
|
Volt::actingAs($user)
|
|
->test('admin.documentation')
|
|
->assertSuccessful();
|
|
});
|
|
|
|
test('the documentation describes the current state with tables and table styles', function () {
|
|
$user = User::factory()->create();
|
|
|
|
Volt::actingAs($user)
|
|
->test('admin.documentation')
|
|
->assertSee('Stand:')
|
|
->assertSee('dev/betrieb/README.md')
|
|
->assertSeeHtml('<table')
|
|
->assertSeeHtml('.prose table')
|
|
->assertDontSee('Connecting Design and Property');
|
|
});
|