Add web layout probe evidence
This commit is contained in:
parent
e01b71495a
commit
c0c17beb45
17 changed files with 605 additions and 7 deletions
|
|
@ -47,6 +47,7 @@ try {
|
|||
--expect-schema gamecult.eve.provider_handoff.v1 `
|
||||
--expect-schema gamecult.eve.electron_shell_projection.v1 `
|
||||
--expect-schema gamecult.eve.tui_grid.v1 `
|
||||
--expect-schema gamecult.eve.web_layout_probe.v1 `
|
||||
--expect-capability-gap runtime:Fensalir:direct2d:capture:missing `
|
||||
--expect-world-lowering-coverage aetheria:aetheria.daemon.game:web-reference:claimed:Eve:web `
|
||||
--expect-world-lowering-coverage aetheria:aetheria.daemon.game:unity-uitoolkit:claimed:EveUnity:unity-uitoolkit `
|
||||
|
|
@ -65,7 +66,7 @@ try {
|
|||
--expect-screenshot-metric web:embedded-surface:structure:pass `
|
||||
--expect-screenshot-metric web:embedded-surface:color-tokens:pass `
|
||||
--expect-screenshot-metric web:embedded-surface:text-presence:pass `
|
||||
--expect-screenshot-metric web:embedded-surface:bounding-boxes:pending-runtime-probe `
|
||||
--expect-screenshot-metric web:embedded-surface:bounding-boxes:pass `
|
||||
--expect-screenshot-metric electron-shell:aetheria-world:bounding-boxes:pending-capture `
|
||||
--expect-capability-gap "split-target:EveUnity:EveUnity:proof:Tagged UPM release" `
|
||||
--expect-conformance-handoff
|
||||
|
|
|
|||
|
|
@ -92,6 +92,7 @@ foreach ($contract in @(
|
|||
"gamecult.eve.provider_handoff.v1",
|
||||
"gamecult.eve.electron_shell_projection.v1",
|
||||
"gamecult.eve.tui_grid.v1",
|
||||
"gamecult.eve.web_layout_probe.v1",
|
||||
"gamecult.eve.runtime_capability.v1",
|
||||
"gamecult.eve.runtime_lifecycle.v1",
|
||||
"gamecult.eve.runtime_split_handoff.v1"
|
||||
|
|
@ -128,6 +129,7 @@ if (Test-Path -LiteralPath (Join-Path $absoluteExportDirectory "index.json")) {
|
|||
"gamecult.eve.provider_handoff.v1",
|
||||
"gamecult.eve.electron_shell_projection.v1",
|
||||
"gamecult.eve.tui_grid.v1",
|
||||
"gamecult.eve.web_layout_probe.v1",
|
||||
"gamecult.eve.runtime_capability.v1",
|
||||
"gamecult.eve.runtime_lifecycle.v1",
|
||||
"gamecult.eve.runtime_split_handoff.v1",
|
||||
|
|
|
|||
|
|
@ -13,6 +13,7 @@ $env:EVE_PARITY_OUTPUT = if ([System.IO.Path]::IsPathRooted($OutputDirectory)) {
|
|||
|
||||
Push-Location $projectRoot
|
||||
try {
|
||||
& (Join-Path $PSScriptRoot "run-web-reference-layout-probe-smoke.ps1")
|
||||
node .\tools\parity\run-parity.mjs
|
||||
& (Join-Path $PSScriptRoot "run-eveconformance-handoff-smoke.ps1")
|
||||
& (Join-Path $PSScriptRoot "run-plugin-handoff-smoke.ps1")
|
||||
|
|
|
|||
|
|
@ -47,6 +47,7 @@ node $consumerScript $consumerExport `
|
|||
--expect-schema gamecult.eve.runtime_split_handoff.v1 `
|
||||
--expect-schema gamecult.eve.electron_shell_projection.v1 `
|
||||
--expect-schema gamecult.eve.tui_grid.v1 `
|
||||
--expect-schema gamecult.eve.web_layout_probe.v1 `
|
||||
--expect-runtime-status web:active `
|
||||
--expect-runtime-status windows-flutter:active `
|
||||
--expect-runtime-status linux-flutter:active `
|
||||
|
|
@ -126,7 +127,7 @@ node $consumerScript $consumerExport `
|
|||
--expect-screenshot-metric web:embedded-surface:structure:pass `
|
||||
--expect-screenshot-metric web:embedded-surface:color-tokens:pass `
|
||||
--expect-screenshot-metric web:embedded-surface:text-presence:pass `
|
||||
--expect-screenshot-metric web:embedded-surface:bounding-boxes:pending-runtime-probe `
|
||||
--expect-screenshot-metric web:embedded-surface:bounding-boxes:pass `
|
||||
--expect-screenshot-metric unity-scene:aetheria-world:bounding-boxes:pending-capture `
|
||||
--expect-screenshot-metric electron-shell:aetheria-world:bounding-boxes:pending-capture `
|
||||
--expect-screenshot-metric tui:aetheria-world:bounding-boxes:pending-capture `
|
||||
|
|
|
|||
59
scripts/run-web-reference-layout-probe-smoke.ps1
Normal file
59
scripts/run-web-reference-layout-probe-smoke.ps1
Normal file
|
|
@ -0,0 +1,59 @@
|
|||
param(
|
||||
[string] $ProviderId = "gamecult.eve.embedded-demo",
|
||||
[string] $FixtureId = "embedded-surface",
|
||||
[string] $OutputPath = "artifacts\web-reference-layout-probe\latest\embedded-surface.json",
|
||||
[int] $Port = 8892,
|
||||
[int] $Width = 1280,
|
||||
[int] $Height = 720
|
||||
)
|
||||
|
||||
$ErrorActionPreference = "Stop"
|
||||
|
||||
$projectRoot = Split-Path -Parent $PSScriptRoot
|
||||
$absoluteOutputPath = if ([System.IO.Path]::IsPathRooted($OutputPath)) {
|
||||
$OutputPath
|
||||
} else {
|
||||
Join-Path $projectRoot $OutputPath
|
||||
}
|
||||
|
||||
Push-Location $projectRoot
|
||||
try {
|
||||
npm --prefix packages/eve-browser-lowering run build | Out-Host
|
||||
if ($LASTEXITCODE -ne 0) {
|
||||
throw "Eve browser lowering build failed with exit code $LASTEXITCODE"
|
||||
}
|
||||
|
||||
node .\tools\web-reference\run-layout-probe.mjs `
|
||||
--provider $ProviderId `
|
||||
--fixture $FixtureId `
|
||||
--output $OutputPath `
|
||||
--port $Port `
|
||||
--width $Width `
|
||||
--height $Height | Out-Host
|
||||
if ($LASTEXITCODE -ne 0) {
|
||||
throw "Web reference layout probe failed with exit code $LASTEXITCODE"
|
||||
}
|
||||
|
||||
if (-not (Test-Path $absoluteOutputPath)) {
|
||||
throw "Web reference layout probe did not write output: $absoluteOutputPath"
|
||||
}
|
||||
$probe = Get-Content $absoluteOutputPath -Raw | ConvertFrom-Json
|
||||
if ($probe.schema -ne "gamecult.eve.web_layout_probe.v1") {
|
||||
throw "Unexpected web layout probe schema: $($probe.schema)"
|
||||
}
|
||||
if ($probe.runtimeId -ne "web") {
|
||||
throw "Unexpected web layout probe runtime: $($probe.runtimeId)"
|
||||
}
|
||||
if ($probe.providerId -ne $ProviderId) {
|
||||
throw "Unexpected web layout probe provider: $($probe.providerId)"
|
||||
}
|
||||
if ($probe.fixtureId -ne $FixtureId) {
|
||||
throw "Unexpected web layout probe fixture: $($probe.fixtureId)"
|
||||
}
|
||||
if ($probe.summary.measuredNodeCount -le 0) {
|
||||
throw "Web layout probe measured no node boxes."
|
||||
}
|
||||
Write-Host "Web reference layout probe smoke passed: $absoluteOutputPath"
|
||||
} finally {
|
||||
Pop-Location
|
||||
}
|
||||
Loading…
Reference in a new issue