set('tenantpilot.onboarding.credentials_required', true); [$user, $portfolioTenant] = createUserWithTenant(role: 'owner'); $this->actingAs($user); $tenantGuid = fake()->uuid(); Livewire::withQueryParams([ 'tenant' => (string) $portfolioTenant->external_id, ])->test(TenantOnboardingWizard::class) ->goToNextWizardStep() ->fillForm([ 'name' => 'Acme Corp', 'environment' => 'prod', 'tenant_id' => $tenantGuid, 'domain' => 'acme.example', ], 'form') ->goToNextWizardStep() ->fillForm([ 'app_client_id' => fake()->uuid(), 'app_client_secret' => 'super-secret-value', 'acknowledge_credentials' => false, ], 'form') ->goToNextWizardStep() ->assertHasFormErrors(['acknowledge_credentials']); });