14 lines
728 B
PowerShell
14 lines
728 B
PowerShell
$ErrorActionPreference = 'Stop'
|
|||
|
|
$html = Get-Content -Raw -Encoding UTF8 -LiteralPath (Join-Path $PSScriptRoot '..\assets\app.js')
|
||
|
|
$plansView = [regex]::Match($html, '(?s)function plansPalletView\(\).*?(?=function receivePhotoView)').Value
|
||
|
|
$css = Get-Content -Raw -Encoding UTF8 -LiteralPath (Join-Path $PSScriptRoot '..\assets\app.css')
|
||
|
|
|
||
|
|
if (-not $plansView.Contains('<th>${t(''destinationWarehouseShort'')}</th>')) {
|
||
|
|
throw 'Inbound pallet list still uses the generic destination label'
|
||
|
|
}
|
||
|
|
if (-not $css.Contains('.pallet-list-table tbody td:nth-child(-n+3){font-size:14px}')) {
|
||
|
|
throw 'Inbound pallet list primary content is not enlarged to 14px'
|
||
|
|
}
|
||
|
|
|
||
|
|
Write-Output 'PASS: pallet list typography and destination label contract'
|