✨ Story 2.4: navigation rapide
This commit is contained in:
21
tests/quicknav.test.ps1
Normal file
21
tests/quicknav.test.ps1
Normal 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'
|
||||
Reference in New Issue
Block a user