Files
Portfolio-Codex/tests/quicknav.test.ps1
2026-02-04 17:00:33 +01:00

21 lines
860 B
PowerShell

$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'