19-05-2026 Rebrand Pressekonto, Hub-Flux UI und Legacy-Media-Migration
Umbenennung presseportale → pressekonto in Domains, Themes und Dokumentation. Design-Tokens, Portal-Shell, Customer-Dashboard, Auth- und Admin-PM-Views. Artisan-Befehl migrate:legacy-media mit Tests und Hub-Flux-Entwicklungsdocs. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
parent
092ee0e918
commit
0a3e52d603
112 changed files with 8464 additions and 1649 deletions
|
|
@ -6,7 +6,7 @@ use Tests\TestCase;
|
|||
|
||||
test('login screen can be rendered', function () {
|
||||
/** @var TestCase $this */
|
||||
$portalUrl = rtrim((string) config('domains.domain_portal_url', 'http://presseportale.test'), '/');
|
||||
$portalUrl = rtrim((string) config('domains.domain_portal_url', 'http://pressekonto.test'), '/');
|
||||
$response = $this->get($portalUrl.'/login');
|
||||
|
||||
$response->assertStatus(200);
|
||||
|
|
@ -14,7 +14,10 @@ test('login screen can be rendered', function () {
|
|||
|
||||
test('users can authenticate using the login screen', function () {
|
||||
/** @var TestCase $this */
|
||||
$user = User::factory()->create();
|
||||
// Super-Admin damit canAccessAdmin() === true → Login-Redirect auf /dashboard.
|
||||
// Seit der rollen-basierten Redirect-Logik (Phase 1) landen rollenlose
|
||||
// User auf '/', nicht mehr auf /dashboard.
|
||||
$user = User::factory()->superAdmin()->create();
|
||||
|
||||
$response = LivewireVolt::test('auth.login')
|
||||
->set('email', $user->email)
|
||||
|
|
|
|||
|
|
@ -9,16 +9,20 @@ test('registration screen can be rendered', function () {
|
|||
});
|
||||
|
||||
test('new users can register', function () {
|
||||
// terms_accepted ist seit dem Hub-Auth-Refresh Pflicht (AGB-Checkbox).
|
||||
// Frisch registrierte User haben keine Rolle → Login-Code fällt auf '/'
|
||||
// zurück (siehe Phase 1 rollen-basierter Redirect in login/register).
|
||||
$response = Volt::test('auth.register')
|
||||
->set('name', 'Test User')
|
||||
->set('email', 'test@example.com')
|
||||
->set('password', 'password')
|
||||
->set('password_confirmation', 'password')
|
||||
->set('terms_accepted', true)
|
||||
->call('register');
|
||||
|
||||
$response
|
||||
->assertHasNoErrors()
|
||||
->assertRedirect(route('dashboard', absolute: false));
|
||||
->assertRedirect('/');
|
||||
|
||||
$this->assertAuthenticated();
|
||||
});
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue