完成50%
This commit is contained in:
@@ -13,7 +13,6 @@ function Assert-NotContains {
|
||||
$root = Split-Path -Parent $PSScriptRoot
|
||||
$page = Get-Content -LiteralPath (Join-Path $root 'pages/auth/a06-auth-status.vue') -Raw -Encoding utf8
|
||||
$pages = Get-Content -LiteralPath (Join-Path $root 'pages.json') -Raw -Encoding utf8 | ConvertFrom-Json
|
||||
$catalog = Get-Content -LiteralPath (Join-Path $root 'data/page-catalog.js') -Raw -Encoding utf8
|
||||
$runtime = Get-Content -LiteralPath (Join-Path $root 'tests/a06-auth-status-runtime-smoke.js') -Raw -Encoding utf8
|
||||
|
||||
if ($pages.pages.path -contains 'pages/auth/a06-auth-status') { throw 'A-06 is archived and must not remain declared in pages.json' }
|
||||
@@ -22,7 +21,6 @@ if (-not ($pages.pages.path -contains 'pages/auth/a01-entry')) { throw 'A-06 mus
|
||||
Assert-Contains -Content $runtime -Expected 'A06-AUTH-STATUS-RUNTIME-SMOKE SKIP archived route' -Message 'A-06 runtime smoke must explicitly skip while the route is archived'
|
||||
|
||||
Assert-NotContains -Content $page -Unexpected 'ModulePage' -Message 'A-06 must not remain a ModulePage shell'
|
||||
Assert-NotContains -Content $catalog -Unexpected 'a06:' -Message 'A-06 must not remain in the temporary page catalog'
|
||||
|
||||
foreach ($required in @(
|
||||
'const status = ref(',
|
||||
@@ -34,11 +32,9 @@ foreach ($required in @(
|
||||
'reasonLabel:',
|
||||
'impactLabel:',
|
||||
'recoveryLabel:',
|
||||
'const resolveStatus = () =>',
|
||||
'const goLogin = () => uni.redirectTo({ url: "/pages/auth/a01-entry" });',
|
||||
'const resolveStatus = (options = {}) =>',
|
||||
'const openRecovery = () =>',
|
||||
'const closeRecovery = () =>',
|
||||
'const goBack = () =>',
|
||||
'<AuthPageShell',
|
||||
'import AuthPageShell from "@/components/AuthPageShell.vue";',
|
||||
'a01-vnext-divider-v1.png',
|
||||
|
||||
Reference in New Issue
Block a user