Files
jiapuapp/tests/a05-success-asset-contract.ps1
T
2026-07-21 07:53:08 +08:00

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'