@@ -14,7 +14,6 @@ import {
1414 createLiveDeviceHarness ,
1515 type LiveDeviceContext ,
1616} from '../live-device-e2e/runtime.ts' ;
17- import { assertPngFile } from '../provider-scenarios/assertions.ts' ;
1817import { runLiveReplayTestSuite } from '../live-device-e2e/replay-suite.ts' ;
1918import { writeCoverageReport } from '../live-device-e2e/coverage.ts' ;
2019import {
@@ -75,7 +74,7 @@ async function runLinuxCommandEvidence(): Promise<void> {
7574async function runCommandEvidence ( context : LinuxContext ) : Promise < void > {
7675 await runCommandDiscoveryEvidence ( context ) ;
7776 await runSnapshotEvidence ( context ) ;
78- await runArtifactEvidence ( context ) ;
77+ await runEventEvidence ( context ) ;
7978}
8079
8180async function runCommandDiscoveryEvidence ( context : LinuxContext ) : Promise < void > {
@@ -186,24 +185,7 @@ function assertLinuxBatchResults(json: any): void {
186185 assert . equal ( second . command , 'snapshot' , JSON . stringify ( json ) ) ;
187186}
188187
189- async function runArtifactEvidence ( context : LinuxContext ) : Promise < void > {
190- const screenshotPath = path . join ( context . artifactDir , 'linux-command-evidence.png' ) ;
191- await runStep ( context , 'capture a Linux artifact for inventory' , [ 'screenshot' , screenshotPath ] ) ;
192- assertPngFile ( screenshotPath ) ;
193-
194- const artifacts = await runStep ( context , 'list Linux session artifacts' , [ 'artifacts' ] ) ;
195- const artifactEntries = artifacts . json ?. data ?. artifacts ;
196- assert . ok ( Array . isArray ( artifactEntries ) , JSON . stringify ( artifacts . json ) ) ;
197- assert . ok (
198- artifactEntries . some (
199- ( entry : Record < string , unknown > ) =>
200- entry . artifactType === 'screenshot' &&
201- String ( entry . path ?? entry . filename ?? '' ) . includes ( path . basename ( screenshotPath ) ) ,
202- ) ,
203- `Linux artifact inventory did not include the screenshot: ${ JSON . stringify ( artifacts . json ) } ` ,
204- ) ;
205- verifyCommand ( context , C . artifacts , 'artifact inventory exposes the live screenshot' ) ;
206-
188+ async function runEventEvidence ( context : LinuxContext ) : Promise < void > {
207189 const timeline = await collectPagedEventTimeline ( ( cursor ) => readLinuxEventPage ( context , cursor ) ) ;
208190 for ( const command of [ C . open , C . snapshot ] ) {
209191 assert . ok (
0 commit comments