Add custom company logo upload and simplify kiosk branding.
Deploy Ladill Frontdesk / deploy (push) Successful in 23s
Deploy Ladill Frontdesk / deploy (push) Successful in 23s
Show Ladill Frontdesk or uploaded logo top-left on kiosk; allow logo upload in onboarding and organization settings. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -11,7 +11,9 @@ use App\Models\Organization;
|
||||
use App\Models\User;
|
||||
use App\Models\Visit;
|
||||
use Illuminate\Foundation\Testing\RefreshDatabase;
|
||||
use Illuminate\Http\UploadedFile;
|
||||
use Illuminate\Support\Carbon;
|
||||
use Illuminate\Support\Facades\Storage;
|
||||
use Tests\TestCase;
|
||||
|
||||
class FrontdeskPhase7Test extends TestCase
|
||||
@@ -93,6 +95,19 @@ class FrontdeskPhase7Test extends TestCase
|
||||
$this->assertTrue($device->fresh()->isOnline());
|
||||
}
|
||||
|
||||
public function test_kiosk_device_page_shows_custom_organization_logo(): void
|
||||
{
|
||||
Storage::fake('public');
|
||||
$path = UploadedFile::fake()->image('brand.png', 320, 80)->store('frontdesk/organizations/'.$this->organization->id, 'public');
|
||||
$this->organization->update(['logo_path' => $path]);
|
||||
|
||||
$device = $this->createKioskDevice();
|
||||
|
||||
$this->get(route('frontdesk.kiosk.device', $device->device_token))
|
||||
->assertOk()
|
||||
->assertSee(Storage::disk('public')->url($path), false);
|
||||
}
|
||||
|
||||
public function test_kiosk_device_can_check_in_visitor(): void
|
||||
{
|
||||
$device = $this->createKioskDevice();
|
||||
|
||||
Reference in New Issue
Block a user