new design
This commit is contained in:
@@ -32,6 +32,17 @@ class SiteExperienceTest extends TestCase {
|
||||
->set('body','Custom messaging')->set('is_visible',true)->call('save')->assertHasNoErrors();
|
||||
$this->assertDatabaseHas('site_sections',['key'=>'hero','title'=>'A better digital future']);
|
||||
}
|
||||
public function test_dedicated_public_pages_render_with_navigation_and_content(): void {
|
||||
foreach (['services' => 'Digital services', 'expertise' => 'Deep engineering', 'approach' => 'A clear process'] as $url => $heading) {
|
||||
$this->get('/'.$url)->assertOk()->assertSee($heading)->assertSee('Capability with purpose');
|
||||
}
|
||||
}
|
||||
public function test_homepage_navigation_links_to_dedicated_pages(): void {
|
||||
$this->seed(SiteContentSeeder::class);
|
||||
$this->get('/')->assertOk()->assertSee('href="'.route('services').'"', false)
|
||||
->assertSee('href="'.route('expertise').'"', false)
|
||||
->assertSee('href="'.route('approach').'"', false);
|
||||
}
|
||||
public function test_honeypot_rejects_spam(): void {
|
||||
Livewire::test(ContactForm::class)->set('name','Spam')->set('email','[email protected]')
|
||||
->set('message','Spam message example')->set('website','spambot')->call('submit')->assertHasErrors(['website']);
|
||||
|
||||
Reference in New Issue
Block a user