Tighten Pro alert caps and move custom badges to Enterprise.
Deploy Ladill Frontdesk / deploy (push) Has been cancelled
Deploy Ladill Frontdesk / deploy (push) Has been cancelled
Pro includes 5,000 email and 5,000 SMS host alerts per month with hard monthly caps; Enterprise is unlimited. Custom badge templates are Enterprise-only, and plan benefit copy matches the new limits.
This commit is contained in:
@@ -61,8 +61,15 @@ class FrontdeskPhase8Test extends TestCase
|
||||
]);
|
||||
}
|
||||
|
||||
public function test_badge_template_settings_can_be_updated(): void
|
||||
public function test_badge_template_settings_can_be_updated_on_enterprise(): void
|
||||
{
|
||||
$this->organization->update([
|
||||
'settings' => array_merge($this->organization->settings ?? [], [
|
||||
'plan' => 'enterprise',
|
||||
'plan_expires_at' => now()->addYear()->toIso8601String(),
|
||||
]),
|
||||
]);
|
||||
|
||||
$this->actingAs($this->user)
|
||||
->put(route('frontdesk.settings.badge.update'), [
|
||||
'show_photo' => '1',
|
||||
@@ -80,6 +87,30 @@ class FrontdeskPhase8Test extends TestCase
|
||||
$this->assertFalse($settings['badge_template']['show_company']);
|
||||
}
|
||||
|
||||
public function test_badge_template_requires_enterprise(): void
|
||||
{
|
||||
$this->organization->update([
|
||||
'settings' => array_merge($this->organization->settings ?? [], [
|
||||
'plan' => 'pro',
|
||||
'plan_expires_at' => now()->addMonth()->toIso8601String(),
|
||||
]),
|
||||
]);
|
||||
|
||||
$this->actingAs($this->user)
|
||||
->get(route('frontdesk.settings.badge'))
|
||||
->assertOk()
|
||||
->assertSee('Upgrade your plan');
|
||||
|
||||
$this->actingAs($this->user)
|
||||
->put(route('frontdesk.settings.badge.update'), [
|
||||
'show_photo' => '1',
|
||||
'show_qr' => '1',
|
||||
'primary_color' => '#00ff00',
|
||||
])
|
||||
->assertRedirect(route('frontdesk.pro.index'))
|
||||
->assertSessionHas('error');
|
||||
}
|
||||
|
||||
public function test_check_in_stores_photo_from_base64(): void
|
||||
{
|
||||
$png = 'data:image/png;base64,'.base64_encode(UploadedFile::fake()->image('photo.png')->getContent());
|
||||
|
||||
Reference in New Issue
Block a user