test(app): verify the artifact gallery inside the real app run detail
This commit is contained in:
@@ -281,6 +281,24 @@ try {
|
||||
await clickText('Back', { contains: true });
|
||||
await assertBody('Original prompt');
|
||||
|
||||
// The recorded artifacts action lists each visit's own files, keeps a
|
||||
// repeated filename distinct, and shows the selected record's facts.
|
||||
await clickText('Artifacts');
|
||||
await assertBody('build · visit 1');
|
||||
await assertBody('test · visit 1');
|
||||
await assertBody('build-report.html');
|
||||
await assertBody('result.csv');
|
||||
captures.push(await capture('artifacts-phone-list'));
|
||||
await delay(500);
|
||||
await clickText('result.csv', { contains: true });
|
||||
await assertBody('text/csv');
|
||||
await assertBody('4.0');
|
||||
captures.push(await capture('artifacts-phone-selected'));
|
||||
await clickText('Close');
|
||||
await delay(400);
|
||||
await clickText('Back', { contains: true });
|
||||
await assertBody('Original prompt');
|
||||
|
||||
await setSize(1280, 800);
|
||||
await assertBody('Original prompt');
|
||||
const desktopDetail = await capture('i1-runs-desktop-detail');
|
||||
|
||||
Reference in New Issue
Block a user