Some checks failed
PR Fast Feedback / fast-feedback (pull_request) Failing after 1m0s
Implemented the first version of provider readiness resolution guidance. Added the ProviderReadinessResolutionAdapter, provider readiness guidance card, and updated EnvironmentRequiredPermissions, ProviderConnectionResource, and ListProviderConnections/ViewProviderConnection. Added tests and updated the design coverage matrix.
29 lines
1.1 KiB
PHP
29 lines
1.1 KiB
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
use App\Models\ManagedEnvironment;
|
|
use App\Support\Links\RequiredPermissionsLinks;
|
|
|
|
it('renders provider guidance, admin consent handoff, and copy actions on the required permissions page', function (): void {
|
|
$tenant = ManagedEnvironment::factory()->create([
|
|
'external_id' => 'tenant-copy-actions-a',
|
|
'app_client_id' => null,
|
|
]);
|
|
|
|
[$user, $tenant] = createUserWithTenant(tenant: $tenant, role: 'readonly', ensureDefaultMicrosoftProviderConnection: false);
|
|
|
|
$this->actingAs($user)
|
|
->get(RequiredPermissionsLinks::requiredPermissions($tenant))
|
|
->assertSuccessful()
|
|
->assertSee('Permission handoff')
|
|
->assertSee('Who can fix this?', false)
|
|
->assertSee('Admin consent guide')
|
|
->assertSee('learn.microsoft.com/en-us/entra/identity/enterprise-apps/grant-admin-consent', false)
|
|
->assertDontSee('Start verification')
|
|
->assertSee('Open provider connection')
|
|
->assertSee('Open provider connection to run verification')
|
|
->assertSee('Copy missing application permissions')
|
|
->assertSee('Copy missing delegated permissions');
|
|
});
|