diff options
| author | Christophe Besson <cbesson@gmail.com> | 2026-10-12 12:57:49 +0200 |
|---|---|---|
| committer | Christophe Besson <cbesson@gmail.com> | 2026-10-12 12:57:49 +0200 |
| commit | 13e7980071ab11b07b5d473e43506c6cb4ab637e (patch) | |
| tree | c1a76c5125511c810f107dc110f09e7f0c5b9cc2 /packages/meshbay-hub/tests/test_photo_delete.py | |
| parent | 3324b4eb701e34f64e859dd90937793ccf7f75c5 (diff) | |
| download | meshbay-13e7980071ab11b07b5d473e43506c6cb4ab637e.tar.gz | |
fix: keep the photo lightbox's close button on a phone screen
The bar was 457 px wide and pushed the close button to 397..437 px, off a
360 px phone. Delete leaves the lightbox (it stays on the tile's menu:
right-click, or press and hold), and below 768 px the bar drops the file
name, the zoom label and 100%.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'packages/meshbay-hub/tests/test_photo_delete.py')
| -rw-r--r-- | packages/meshbay-hub/tests/test_photo_delete.py | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/packages/meshbay-hub/tests/test_photo_delete.py b/packages/meshbay-hub/tests/test_photo_delete.py index bcc943f..bd22cbe 100644 --- a/packages/meshbay-hub/tests/test_photo_delete.py +++ b/packages/meshbay-hub/tests/test_photo_delete.py @@ -1,10 +1,11 @@ """ Deleting a photo from the Photos app (harness/photo_delete_probe.py). -On a right-clicked tile and in the lightbox's bar, which is how a phone gets -at it. Offered on the rule Files applies and the node enforces: the node's -operator, or whoever uploaded the photo. Never without the page's own -confirmation, and never from Search, which is read-only. +On a tile's menu — right-click, or press and hold on a phone — and not in the +lightbox's bar, where it pushed the close button off a phone's screen. +Offered on the rule Files applies and the node enforces: the node's operator, +or whoever uploaded the photo. Never without the page's own confirmation, and +never from Search, which is read-only. """ import json @@ -48,11 +49,9 @@ def test_the_operator_may_delete_any_photo(cases): assert cases["operator"]["delete_offered"] == [True, True, True] -def test_the_lightbox_deletes_and_shows_the_next_photo(cases): +def test_the_lightbox_offers_no_delete(cases): c = cases["lightbox"] - assert c["button"] and c["dialog_on_top"] - assert c["deleted"] == ["p1"] - assert c["open"] and c["before"] == "beach.jpg" and c["after"] == "dunes.jpg" + assert c["open"] and not c["button"] def test_search_results_offer_no_delete(cases): |