26 lines
1.0 KiB
PHP
26 lines
1.0 KiB
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
it('renders re-run verification and next-step links using canonical manage surfaces only', function (): void {
|
|
[$user, $tenant] = createUserWithTenant(role: 'readonly');
|
|
|
|
$this->actingAs($user)
|
|
->get("/admin/tenants/{$tenant->external_id}/required-permissions")
|
|
->assertSuccessful()
|
|
->assertSee('Re-run verification')
|
|
->assertSee('/admin/onboarding', false)
|
|
->assertDontSee('/admin/t/', false);
|
|
});
|
|
|
|
it('renders sections in summary-issues-passed-technical order and keeps technical details collapsed by default', function (): void {
|
|
[$user, $tenant] = createUserWithTenant(role: 'readonly');
|
|
|
|
$this->actingAs($user)
|
|
->get("/admin/tenants/{$tenant->external_id}/required-permissions")
|
|
->assertSuccessful()
|
|
->assertSeeInOrder(['Summary', 'Issues', 'Passed', 'Technical details'])
|
|
->assertSee('<details data-testid="technical-details"', false)
|
|
->assertDontSee('data-testid="technical-details" open', false);
|
|
});
|