Repository: fidals/shopelectro

Issue:
Add hint with the full product name
To the product tile on Category page.

There product [#6242](https://www.shopelectro.ru/catalog/products/6242/) on the screen

![image](https://user-images.githubusercontent.com/3526796/59180550-ec14e800-8b6d-11e9-94bd-46a77440602d.png)

Excess crumbs delimiter
![image](https://user-images.githubusercontent.com/3526796/58234601-9b1c8b80-7d47-11e9-9eb0-02975964d1de.png)

Example from [category page](https://www.shopelectro.ru/catalog/categories/avtomobilnye-razvetviteli-i-perekhodniki/). Product page has this problem too


Discussion:

Resolving patch:
diff --git a/shopelectro/views/catalog.py b/shopelectro/views/catalog.py
--- a/shopelectro/views/catalog.py
+++ b/shopelectro/views/catalog.py
@@ -35,7 +35,16 @@ def category_matrix(request, page: str):
     matrix = OrderedDict()
     for i, root in enumerate(roots):
         children = root.children.active()
-        # @todo #822:30m  Doc category matrix blocks.
+        # Categories matrix is UI element supposed to preview
+        # the whole catalog structure at with a single page.
+        # The matrix consists of blocks.
+        # Every block is a list of categories with links.
+        # How the matrix looks like:
+        # https://github.com/fidals/shopelectro/issues/837#issuecomment-501161967
+
+        # @todo #837:60m  Improve categories matrix arch.
+        #  Now it's untyped data structure with common comments.
+        #  Turn it to the set of object with clear names.
         matrix[(root.name, root.url)] = (
             children
             if i not in MATRIX_BLOCKS_TO_LIMIT


Test patch:
diff --git a/shopelectro/tests/tests_selenium.py b/shopelectro/tests/tests_selenium.py
--- a/shopelectro/tests/tests_selenium.py
+++ b/shopelectro/tests/tests_selenium.py
@@ -191,13 +191,13 @@ def test_breadcrumbs(self):
         self.wait_page_loading()
         crumbs = self.browser.find_elements_by_class_name('breadcrumbs-item')
 
-        self.assertEqual(len(crumbs), 3)
+        self.assertEqual(len(crumbs), 2)
 
         # In 'deep category' there should be more crumbs
         self.browser.get(self.children_category)
         crumbs = self.browser.find_elements_by_class_name('breadcrumbs-item')
 
-        self.assertEqual(len(crumbs), 4)
+        self.assertEqual(len(crumbs), 3)
 
     def test_loaded_products_count(self):
         """Any CategoryPage should contain predefined products count by default."""
@@ -431,7 +431,7 @@ def test_breadcrumbs(self):
         """
         # There should be 6 items in breadcrumbs for this case
         crumbs = self.browser.find_elements_by_class_name('breadcrumbs-item')
-        self.assertEqual(len(crumbs), 6)
+        self.assertEqual(len(crumbs), 5)
 
     def test_ui_elements(self):
         """
@@ -938,6 +938,9 @@ def test_autocomplete_can_expand_and_collapse(self):
         # ... and autocomplete collapse
         self.assertFalse(self.autocomplete.is_displayed())
 
+    # @todo #837:30m  Resurrect `test_autocomplete_item_link`
+    #  https://ci.fidals.com/fidals/shopelectro/1554/10
+    @unittest.skip
     def test_autocomplete_item_link(self):
         """First autocomplete item should link on category page by click."""
         self.fill_input()
diff --git a/shopelectro/tests/tests_selenium_mobile.py b/shopelectro/tests/tests_selenium_mobile.py
--- a/shopelectro/tests/tests_selenium_mobile.py
+++ b/shopelectro/tests/tests_selenium_mobile.py
@@ -158,6 +158,9 @@ def test_tags_collapse_state(self):
 
         self.assertFalse(any(t.is_displayed() for t in tags))
 
+    # @todo #843:60m  Fix mobile cart.
+    #  Now it's test fails
+    @unittest.skip
     # CarrotQuest outer js service produces error on this test.
     # Enabled debug makes it off.
     @override_settings(DEBUG=True, INTERNAL_IPS=tuple())