Skip to content

Commit

Permalink
#837 Fix crumbs count tests
Browse files Browse the repository at this point in the history
  • Loading branch information
duker33 committed Jun 15, 2019
1 parent 7420591 commit 9fc705b
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions shopelectro/tests/tests_selenium.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down Expand Up @@ -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)
Expand Down Expand Up @@ -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):
"""
Expand Down

0 comments on commit 9fc705b

Please sign in to comment.