completed the frontend dashboard component and bound it to the tenant admin pwa for the optimal onboarding experience.. Added a profile page.
This commit is contained in:
@@ -90,11 +90,15 @@ class DashboardPageTest extends TestCase
|
||||
->where('task_progress', 100)
|
||||
->where('upcoming_events', 1)
|
||||
->where('new_photos', 1)
|
||||
->where('credit_balance', 4)
|
||||
->etc()
|
||||
)
|
||||
->where('tenant.activePackage.name', 'Premium Paket')
|
||||
->where('tenant.activePackage.remainingEvents', 9)
|
||||
->has('onboarding', fn (AssertableInertia $steps) => $steps
|
||||
->where('0.key', 'admin_app')
|
||||
->where('1.done', true)
|
||||
->etc()
|
||||
)
|
||||
->has('upcomingEvents', 1)
|
||||
->has('recentPurchases', 1)
|
||||
->where('emailVerification.mustVerify', true)
|
||||
|
||||
@@ -73,4 +73,18 @@ class ProfilePageTest extends TestCase
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
public function test_localized_profile_route_resolves_to_profile_page(): void
|
||||
{
|
||||
$user = User::factory()->create([
|
||||
'preferred_locale' => 'de',
|
||||
]);
|
||||
|
||||
$this->actingAs($user);
|
||||
|
||||
$response = $this->get(route('marketing.profile.index', ['locale' => 'de']));
|
||||
|
||||
$response->assertStatus(200)
|
||||
->assertInertia(fn (AssertableInertia $page) => $page->component('Profile/Index'));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user