✨ Story 2.2: bouton cta navbar
This commit is contained in:
18
tests/cta.test.ps1
Normal file
18
tests/cta.test.ps1
Normal 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'
|
||||
@@ -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'
|
||||
Reference in New Issue
Block a user