Skip to content

Test plan — media preview (PR #357 integration)

This plan exists because the media preview was rebuilt, not extended. The image viewer and the video player were two separate components; they are now one gallery. Everything the old components did has to still work, and the things that were added have to work too.

Two halves, and the first one matters more: a new feature that fails is a disappointment, an old one that stops working is a regression.

  • Fixtures — a folder holding at least: 3 photos (one portrait, one landscape, one large — 4000 px or more), 2 videos (one landscape, one portrait), 1 PDF and 1 text file. The portrait video is not optional: it is the file that could not be closed before.
  • Where — desktop browser, and a real phone or tablet. The touch half cannot be judged from a desktop with emulation alone.
  • Before starting — note the build you are testing.

Part 1 — What already existed, and must still work

1.1 Opening images

#ActionExpected
1Open a photo from the file listIt opens full screen, fitted to the window, not cropped
2Look at the headerThe file name is shown
3Open a portrait photoFitted to height, no distortion
4Open a 4000 px photoDisplayed whole, no scrollbars

1.2 Browsing between images

#ActionExpected
5Press the right arrow keyThe next image is shown
6Press the left arrow keyBack to the previous one
7Press the arrows at the last itemWraps to the first — it loops
8Click the on-screen arrowsSame as the keyboard

1.3 Videos

#ActionExpected
9Open a landscape videoIt plays automatically, with the native controls
10Look for the posterThe thumbnail is shown before playback starts
11Use the video's own controlsPlay, pause, seek, volume and full screen all work
12Press the right arrow while the video has focusThe video seeks — the gallery does not change item
13Move to another item while a video is playingThe sound stops. Nothing keeps playing in the background
14Close the preview during playbackThe sound stops
15Open a .mkv, a .webm, a .movEach plays, or fails visibly — never silently

1.4 Closing

#ActionExpected
16Press EscapeThe preview closes
17Click the close buttonThe preview closes
18After closingThe file list is where it was, with the same scroll position

1.5 Downloading

#ActionExpected
19Click download on the item you openedThat file is downloaded
20Move two items along, then downloadThe file on screen is downloaded, not the one you opened

1.6 Untouched by this work

#ActionExpected
21Open a PDFThe PDF viewer opens as before
22Open a text fileThe editor opens as before
23Open an office documentONLYOFFICE or Collabora opens as before
24Open a photo from a shared linkWorks, with the share's own permissions

Part 2 — What is new

2.1 Swiping (touch)

#ActionExpected
25Swipe right-to-left across a photoThe next item is shown
26Swipe left-to-rightThe previous item
27Swipe from a photo to a video and backThe gallery mixes both — this is new
28Swipe a few pixels and releaseNothing happens. A short movement is not a swipe
29Swipe verticallyNothing happens — the page scrolls, the gallery does not move
30Swipe on a videoThe next item, exactly as on a photo

2.2 Zoom (touch)

#ActionExpected
31Pinch two fingers apart on a photoIt zooms in, centred
32Pinch togetherIt zooms back out, no smaller than fitted
33Double-tap a photoIt zooms in
34Double-tap againBack to fitted, centred
35Drag with one finger while zoomedThe picture moves under the finger
36Drag to the edge and keep goingIt stops at the edge — the picture never leaves the screen
37Pinch a videoNothing happens, and the gallery does not change item

2.3 The rule that makes both work

This is the heart of the change, and it is what #354 complained about: dragging used to move the picture instead of turning the page.

#ActionExpected
38At fitted size, drag sidewaysThe gallery moves to the next item
39Zoom in, then drag sidewaysThe picture moves. The gallery stays put
40While zoomed, tap the on-screen arrowThe next item — the arrows always work
41Check the item you just arrived atIt is at fitted size, not carrying the previous zoom
42Zoom back out fully, then drag sidewaysThe gallery moves again

2.4 Zoom (desktop)

#ActionExpected
43Ctrl (or ⌘) and the wheel over a photoIt zooms
44Wheel without the modifierNothing zooms — normal scrolling
45Trackpad pinch (macOS)It zooms
46Double-click a photoIt zooms in, then back out

2.5 The bug from #354

#ActionExpected
47On Android, open a portrait videoIt is displayed whole
48Look for the close buttonVisible, and reachable
49Close itThe preview closes without reloading the page

Test 49 is the whole reason the issue was raised: the portrait video could not be closed at all.

2.6 Labels

#ActionExpected
50Switch the interface to French, open a photoThe buttons are in French
51Check with a screen reader, or inspectThe buttons carry a translated label, not English text

Part 3 — Edge cases worth a minute

#ActionExpected
52Open the only photo in a folderIt opens; no arrows, no counter
53Open a photo in a folder of 500 itemsIt opens promptly
54Open a corrupt or truncated imageFails visibly; the preview can still be closed
55Rotate the phone while zoomedNothing is lost; the picture stays usable
56Open a photo, close, reopen anotherNo zoom carried over from the first

What to report

For anything that fails, note the number, the file involved, the device and browser, and what happened instead. Numbers 12, 13, 20, 39, 41 and 49 are the ones to check first if time is short: each one covers something that was either broken before or is easy to break again.