Co-authored-by: manoel freitas <manoel.josefneto@gmail.com> Co-committed-by: manoel freitas <manoel.josefneto@gmail.com>
44 lines
1.4 KiB
PHP
44 lines
1.4 KiB
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace Tests\Feature\PublicSite;
|
|
|
|
use App\Models\SiteSetting;
|
|
use Illuminate\Foundation\Testing\RefreshDatabase;
|
|
use Tests\TestCase;
|
|
|
|
class PublicNavigationVerticalsTest extends TestCase
|
|
{
|
|
use RefreshDatabase;
|
|
|
|
public function test_header_and_footer_expose_casamentos_and_corporate_without_implying_weddings_only(): void
|
|
{
|
|
SiteSetting::instance();
|
|
|
|
$response = $this->get(route('about'))->assertOk();
|
|
|
|
$homeCasamentos = url('/#casamentos');
|
|
$homeCorporate = url('/#corporate');
|
|
|
|
$response
|
|
->assertSee('id="main-nav"', false)
|
|
->assertSee('href="'.$homeCasamentos.'"', false)
|
|
->assertSee('>Casamentos</a>', false)
|
|
->assertSee('href="'.$homeCorporate.'"', false)
|
|
->assertSee('>Corporate</a>', false)
|
|
->assertSee('href="'.route('portfolio.index').'"', false)
|
|
->assertSee('href="'.route('about').'"', false)
|
|
->assertSee('href="'.route('services.index').'"', false)
|
|
->assertSee('href="'.route('privacy').'"', false)
|
|
->assertSee('aria-label="Rodapé"', false)
|
|
->assertSeeInOrder([
|
|
'aria-label="Rodapé"',
|
|
'href="'.$homeCasamentos.'"',
|
|
'Casamentos',
|
|
'href="'.$homeCorporate.'"',
|
|
'Corporate',
|
|
], false);
|
|
}
|
|
}
|