Story 2.4: navigation rapide

This commit is contained in:
2026-02-04 17:00:33 +01:00
parent a1092c9f60
commit c9369df683
5 changed files with 106 additions and 24 deletions

21
tests/quicknav.test.ps1 Normal file
View File

@@ -0,0 +1,21 @@
$ErrorActionPreference = 'Stop'
function Assert-True {
param(
[bool]$Condition,
[string]$Message
)
if (-not $Condition) { throw $Message }
}
Assert-True (Test-Path 'pages/home.php') 'Missing pages/home.php'
$homeContent = Get-Content -Raw 'pages/home.php'
Assert-True ($homeContent -match 'Explorez mon portfolio') 'Home missing quick nav section title'
Assert-True ($homeContent -match 'href="/projets"') 'Home missing projects link'
Assert-True ($homeContent -match 'href="/competences"') 'Home missing skills link'
Assert-True ($homeContent -match 'href="/a-propos"') 'Home missing about link'
Assert-True ($homeContent -match 'grid-cols-1') 'Home missing mobile grid'
Assert-True ($homeContent -match 'md:grid-cols-3') 'Home missing desktop grid'
Assert-True ($homeContent -match 'card-interactive') 'Home missing hover card class'
'OK'