diff --git a/shopelectro/tests/tests_selenium.py b/shopelectro/tests/tests_selenium.py index 61bb2cbe..7f09fc9e 100644 --- a/shopelectro/tests/tests_selenium.py +++ b/shopelectro/tests/tests_selenium.py @@ -15,11 +15,10 @@ from selenium.webdriver.common.keys import Keys from selenium.webdriver.support import expected_conditions as EC -from shopelectro.models import Category, Product -from shopelectro.tests import helpers - from pages.models import FlatPage, CustomPage from pages.urls import reverse_custom_page +from shopelectro.models import Category, Product +from shopelectro.tests import helpers def add_to_cart(browser): @@ -192,7 +191,7 @@ 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) @@ -432,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): """