fix(superadmin): stabilize knowledge base nav and docs grouping
This commit is contained in:
@@ -89,6 +89,20 @@ class UserRoleAccessTest extends TestCase
|
||||
$this->assertStringStartsWith('/super-admin/docs', (string) $redirectPath);
|
||||
}
|
||||
|
||||
public function test_super_admin_docs_panel_page_renders_after_redirect(): void
|
||||
{
|
||||
$user = User::factory()->create(['role' => 'super_admin']);
|
||||
|
||||
$response = $this
|
||||
->followingRedirects()
|
||||
->actingAs($user, 'super_admin')
|
||||
->get('/super-admin/docs');
|
||||
|
||||
$response
|
||||
->assertOk()
|
||||
->assertSee('Grundlagen');
|
||||
}
|
||||
|
||||
public function test_non_super_admin_cannot_access_super_admin_docs_panel(): void
|
||||
{
|
||||
$user = User::factory()->create(['role' => 'tenant_admin']);
|
||||
|
||||
Reference in New Issue
Block a user