toContain('') ->not->toContain('toContain("'label' => 'General'") ->toContain("'label' => 'Members'") ->toContain("'label' => 'Admin View'") ->toContain("'label' => 'Danger Zone'") ->toContain('application-settings-navigation') ->not->toContain('New team'); expect(file_get_contents(resource_path('views/livewire/team/index.blade.php'))) ->toContain('buttonTitle="New team"') ->not->toContain('Delete team'); expect(file_get_contents(resource_path('views/livewire/team/danger-zone.blade.php'))) ->toContain('Delete team') ->toContain('status="Permanent"') ->toContain('border-red-300') ->toContain('') ->toContain('wire:click="refreshResources"') ->not->toContain('wire:loading.class="animate-spin"') ->toContain("route('project.show', ['project_uuid' => \$project->uuid])") ->toContain("route('server.show', ['server_uuid' => \$server->uuid])") ->toContain('target="_blank" rel="noopener noreferrer"') ->toContain('Delete every server owned by this team before deleting it.') ->toContain('currentTeam()->servers->isEmpty()') ->not->toContain('currentTeam()->isEmpty()'); expect(file_get_contents(resource_path('views/livewire/switch-team.blade.php'))) ->toContain('New team') ->toContain('team-switcher-create-expanded') ->toContain('team-switcher-create-collapsed'); expect($navbar) ->toContain("request()->routeIs('team.index', 'team.member.index', 'team.admin-view', 'team.danger-zone')") ->not->toContain("['label' => 'Members', 'route' => 'team.member.index'"); });