firstOrCreate(['slug' => 'mpba-limited'], ['name' => 'MPBA Limited', 'is_system_company' => true, 'status' => 'active']); $tenant = Company::query()->firstOrCreate(['slug' => 'sentinel'], ['name' => 'Sentinel', 'status' => 'active']); Country::query()->firstOrCreate(['alpha2' => 'GB'], ['alpha3' => 'GBR', 'numeric' => '826', 'name' => 'United Kingdom', 'is_active' => true]); $admin = User::query()->firstOrCreate(['email' => 'company-admin-browser@example.test'], [ 'company_id' => $system->id, 'name' => 'Company Browser Admin', 'password' => bcrypt('password'), 'is_platform_admin' => true, 'status' => 'active', ]); $this->browse(function (Browser $browser) use ($admin, $tenant): void { $browser->loginAs($admin) ->visitRoute('platform.companies.show', $tenant) ->assertSee('Company address') ->assertSee('Create division') ->assertSee('Director coverage') ->assertSee('Warehouse division and address alignment') ->assertSee('Divisions'); }); } }