feat: CTA de orientação das modalidades via WhatsApp
A banda "ainda não sabe" abre wa.me com mensagem de orientação; sem número, cai no briefing. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -8,6 +8,7 @@ use App\Models\PortfolioCase;
|
||||
use App\Models\SiteSetting;
|
||||
use App\Models\Testimonial;
|
||||
use App\Models\WeddingPackage;
|
||||
use App\Support\PackageContactLink;
|
||||
use Illuminate\Foundation\Testing\RefreshDatabase;
|
||||
use Tests\TestCase;
|
||||
|
||||
@@ -213,7 +214,12 @@ class HomePageContentTest extends TestCase
|
||||
false,
|
||||
)
|
||||
->assertSee('target="_blank"', false)
|
||||
->assertDontSee(route('briefing', ['servico_interesse' => 'Grand Jour']), false);
|
||||
->assertDontSee(route('briefing', ['servico_interesse' => 'Grand Jour']), false)
|
||||
->assertSee('data-testid="package-guidance-cta"', false)
|
||||
->assertSee(
|
||||
'https://wa.me/5511988887777?text='.rawurlencode(PackageContactLink::GUIDANCE_MESSAGE),
|
||||
false,
|
||||
);
|
||||
}
|
||||
|
||||
public function test_corporate_steps_and_placeholder_render_from_settings(): void
|
||||
|
||||
@@ -6,6 +6,7 @@ namespace Tests\Feature\PublicSite;
|
||||
|
||||
use App\Models\SiteSetting;
|
||||
use App\Models\WeddingPackage;
|
||||
use App\Support\PackageContactLink;
|
||||
use Illuminate\Foundation\Testing\RefreshDatabase;
|
||||
use Tests\TestCase;
|
||||
|
||||
@@ -31,7 +32,12 @@ class ServicesPageCtaTest extends TestCase
|
||||
false,
|
||||
)
|
||||
->assertSee('target="_blank"', false)
|
||||
->assertDontSee(route('briefing', ['servico_interesse' => 'Grand Jour']), false);
|
||||
->assertDontSee(route('briefing', ['servico_interesse' => 'Grand Jour']), false)
|
||||
->assertSee('data-testid="package-guidance-cta"', false)
|
||||
->assertSee(
|
||||
'https://wa.me/5511988887777?text='.rawurlencode(PackageContactLink::GUIDANCE_MESSAGE),
|
||||
false,
|
||||
);
|
||||
}
|
||||
|
||||
public function test_package_cta_falls_back_to_briefing_without_whatsapp_number(): void
|
||||
|
||||
Reference in New Issue
Block a user