From 50cec9809220db3663614eb441fc207d552636e5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=96mer=20Duran?= Date: Thu, 11 Jun 2026 18:07:25 +0200 Subject: [PATCH] =?UTF-8?q?Tests:=20Make=20the=20360=C2=B0=20sphere=20vide?= =?UTF-8?q?o=20test=20assert=20instead=20of=20skipping?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/tests/acceptance/acceptance-public/sphere.js | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/frontend/tests/acceptance/acceptance-public/sphere.js b/frontend/tests/acceptance/acceptance-public/sphere.js index 3362a3024..609dc99f7 100644 --- a/frontend/tests/acceptance/acceptance-public/sphere.js +++ b/frontend/tests/acceptance/acceptance-public/sphere.js @@ -35,14 +35,11 @@ test.meta("testID", "sphere-002").meta({ mode: "public" })("Common: Standard pho test.meta("testID", "sphere-003").meta({ mode: "public" })("Common: Opens 360° video in sphere viewer", async (t) => { await menu.openPage("panoramas"); + // The acceptance fixture set must include a 360° equirectangular video; fail clearly if it is missing. + await t.expect(Selector("div.type-video").exists).ok({ timeout: 5000 }); const uid = await photo.getNthPhotoUid("video", 0); - if (!uid) { - // No 360° video present in current fixture set — skip silently. - return; - } - await photoviewer.openPhotoViewer("uid", uid); await t.expect(Selector("div.pswp__media--sphere").exists).ok({ timeout: 5000 }); - await t.expect(Selector("div.psv-container video").exists).ok({ timeout: 10000 }); + await t.expect(Selector("div.pswp__media--sphere video").exists).ok({ timeout: 10000 }); });