Make product cards fully clickable
All checks were successful
Build and Push Docker Image / build (push) Successful in 27s

This commit is contained in:
2026-06-16 00:06:21 +02:00
parent a84b9af926
commit 1188cef7be
11 changed files with 133 additions and 9 deletions

View File

@@ -75,6 +75,16 @@ class FavoritePageTests(TestCase):
self.assertContains(response, "/media/items/sink-primary.jpg")
self.assertContains(response, 'href="/catalog/plumbing/kitchen-sink/"', html=False)
self.assertContains(response, 'href="/catalog/plumbing/mono-tap/"', html=False)
self.assertContains(
response,
'<a class="item-card-overlay" href="/catalog/plumbing/kitchen-sink/"',
html=False,
)
self.assertContains(
response,
'<a class="item-card-overlay" href="/catalog/plumbing/mono-tap/"',
html=False,
)
self.assertContains(response, "Удалить из избранного")
def test_toggle_endpoint_adds_and_removes_favorite(self):