9 lines
501 B
PowerShell
9 lines
501 B
PowerShell
$ErrorActionPreference = 'Stop'
|
|
$root = Split-Path -Parent $PSScriptRoot
|
|
$page = Get-Content -LiteralPath (Join-Path $root 'pages/auth/a05-reset-password.vue') -Raw -Encoding UTF8
|
|
if ($page.Contains('<text class="success-mark">')) { throw 'A05 must not use a text symbol as its success asset' }
|
|
foreach ($token in @('<image', 'class="success-mark"', 'brand-seal.png')) {
|
|
if (-not $page.Contains($token)) { throw "A05 success asset missing: $token" }
|
|
}
|
|
Write-Output 'A05-SUCCESS-ASSET-CONTRACT PASS'
|