open-in-new-tab behavior. #}
+
+ {% endif %}
diff --git a/make_post_sell/tests/test_functional.py b/make_post_sell/tests/test_functional.py
index 48138a9..8311f15 100644
--- a/make_post_sell/tests/test_functional.py
+++ b/make_post_sell/tests/test_functional.py
@@ -7307,6 +7307,18 @@ class TestOfferCheckout(_AuthenticatedBase):
self.assertIn("auction-page", body)
self.assertIn("auction-countdown", body)
+ def test_product_thumbnail_swap_js_served(self):
+ """Capability-driven hover/click swap of the product cover image
+ against the thumbnail strip — the JS itself is asset-tested
+ here; the template wires it only when thumbnail1 is present."""
+ res = self.testapp.get(
+ "/static/js/product-thumbnail-swap.js", status=200,
+ )
+ body = res.body.decode()
+ self.assertIn(".product-images", body)
+ self.assertIn(".product-thumbnail", body)
+ self.assertIn("mouseenter", body)
+
def test_auction_page_loads_auction_js(self):
"""MPS-20: auction.j2 references /static/js/auction.js."""
from ..models.auction import (