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.
21 lines
704 B
PHP
21 lines
704 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
use App\Support\Links\RequiredPermissionsLinks;
|
|
use App\Support\ManagedEnvironmentLinks;
|
|
|
|
it('renders the no-data state with a canonical provider connection link when no stored permission data exists', function (): void {
|
|
[$user, $tenant] = createUserWithTenant(role: 'readonly');
|
|
|
|
$expectedUrl = ManagedEnvironmentLinks::providerConnectionsUrl($tenant);
|
|
|
|
$this->actingAs($user)
|
|
->get(RequiredPermissionsLinks::requiredPermissions($tenant))
|
|
->assertSuccessful()
|
|
->assertSee('No data available')
|
|
->assertSee($expectedUrl, false)
|
|
->assertSee('Open provider connection')
|
|
->assertDontSee('Start verification');
|
|
});
|