Story 2.2: bouton cta navbar

This commit is contained in:
2026-02-04 16:54:25 +01:00
parent dd6c5d0a72
commit 8dd68ef584
5 changed files with 59 additions and 29 deletions

18
tests/cta.test.ps1 Normal file
View File

@@ -0,0 +1,18 @@
$ErrorActionPreference = 'Stop'
function Assert-True {
param(
[bool]$Condition,
[string]$Message
)
if (-not $Condition) { throw $Message }
}
Assert-True (Test-Path 'templates/navbar.php') 'Missing templates/navbar.php'
$navbar = Get-Content -Raw 'templates/navbar.php'
Assert-True ($navbar -match 'Me contacter') 'Navbar CTA label missing'
Assert-True ($navbar -match 'btn-primary') 'Navbar CTA missing btn-primary'
Assert-True ($navbar -match 'w-full justify-center') 'Mobile CTA missing full-width styling'
Assert-True ($navbar -match '/contact') 'CTA link not /contact'
'OK'

View File

@@ -5,4 +5,5 @@ $here = Split-Path -Parent $MyInvocation.MyCommand.Path
& (Join-Path $here 'templates.test.ps1')
& (Join-Path $here 'canary.test.ps1')
& (Join-Path $here 'navbar.test.ps1')
& (Join-Path $here 'cta.test.ps1')
'OK'