withoutVite(); $this->get(route('native-app.edit'))->assertOk()->assertInertia(fn (Assert $page) => $page ->component('settings/App')->where('auth.user', null)->missing('workspace')->missing('updates')); $this->actingAs(User::factory()->unverified()->create(['must_change_password_on_next_login' => true])) ->get(route('native-app.edit'))->assertOk()->assertInertia(fn (Assert $page) => $page ->component('settings/App')->missing('workspace')->missing('updates')); } public function test_native_capabilities_rendering_and_actions(): void { $process = new Process(['node', 'tests/Fixtures/native-app.mjs'], base_path()); $process->setTimeout(60); $process->run(); $this->assertTrue($process->isSuccessful(), $process->getOutput().$process->getErrorOutput()); $this->assertStringContainsString('Native app settings checks passed.', $process->getOutput()); } }