## Summary - restore broad full-suite green-signal coverage across platform governance, operations, onboarding, dashboard/productization, and customer review flows - align related platform tests and supporting behavior with the current expected state for this restoration pass - update the spec-candidates queue as part of the same suite-restoration sweep ## Validation - `cd apps/platform && ./vendor/bin/sail artisan test --compact tests/Browser/Dashboard/TenantDashboardProductizationSmokeTest.php tests/Browser/Reviews/CustomerReviewWorkspaceSmokeTest.php tests/Browser/Spec194GovernanceFrictionSmokeTest.php tests/Browser/Spec265DecisionRegisterSmokeTest.php` Co-authored-by: Ahmed Darrazi <ahmed.darrazi@live.de> Reviewed-on: #351
22 lines
743 B
PHP
22 lines
743 B
PHP
<?php
|
|
|
|
use App\Filament\Resources\PolicyResource;
|
|
use App\Models\Policy;
|
|
use App\Models\ManagedEnvironment;
|
|
use Illuminate\Foundation\Testing\RefreshDatabase;
|
|
use Livewire\Livewire;
|
|
|
|
uses(RefreshDatabase::class);
|
|
test('policies bulk actions are available for authenticated users', function () {
|
|
$tenant = ManagedEnvironment::factory()->create();
|
|
[$user, $tenant] = createUserWithTenant($tenant, role: 'owner');
|
|
|
|
setAdminPanelContext($tenant);
|
|
$policies = Policy::factory()->count(2)->create(['managed_environment_id' => $tenant->id]);
|
|
|
|
Livewire::actingAs($user)
|
|
->test(PolicyResource\Pages\ListPolicies::class)
|
|
->callTableBulkAction('bulk_sync', $policies)
|
|
->assertHasNoTableBulkActionErrors();
|
|
});
|