HEL-665: switch results without overlapping video players
Co-authored-by: multica-agent <github@multica.ai>
This commit is contained in:
@@ -205,7 +205,7 @@
|
||||
{:else}
|
||||
<div class="a-stage stage">
|
||||
{#key mediaKey}
|
||||
<div class="stage-media" in:xfade out:xfade>
|
||||
<div class="stage-media">
|
||||
{#if output && video}
|
||||
<!-- svelte-ignore a11y_media_has_caption -->
|
||||
<div class="print a-photo">
|
||||
|
||||
@@ -370,6 +370,22 @@ try {
|
||||
'video playback and tail export preserved',
|
||||
(await page.getByRole('button', { name: '导出尾帧' }).count()) > 0,
|
||||
);
|
||||
await page.locator('.studio-form .gen').click();
|
||||
const secondVideo = await until(async () =>
|
||||
(await api('/api/playground/jobs')).find(
|
||||
(j) => j.workflow_id === h3.id && j.status === 'done' && j.id !== video.id,
|
||||
),
|
||||
);
|
||||
jobs.push(secondVideo.id);
|
||||
await page.locator(`.result-item[aria-label^="查看第 ${secondVideo.id} 次"]`).waitFor();
|
||||
await page.getByRole('button', { name: '播放视频', exact: true }).click();
|
||||
await page.getByRole('button', { name: '暂停视频', exact: true }).waitFor();
|
||||
await page.locator(`.result-item[aria-label^="查看第 ${video.id} 次"]`).click();
|
||||
ok(
|
||||
'result switch has one complete player and remains paused',
|
||||
(await page.locator('.inspector.main video').count()) === 1 &&
|
||||
(await page.locator('.inspector.main video').evaluate((v) => v.paused)),
|
||||
);
|
||||
await page.screenshot({ path: SHOTS + '/video.png' });
|
||||
await page.goto(WEB + '/workflows');
|
||||
await page.locator('.workflow-card').first().waitFor();
|
||||
|
||||
Reference in New Issue
Block a user