new design

This commit is contained in:
Mark Gregory
2026-11-19 18:04:33 +00:00
parent 2886d6fac6
commit a7764a3483
8 changed files with 246 additions and 15 deletions
+11
View File
@@ -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']);