Skip to content

Commit

Permalink
#808 review fixes (#923)
Browse files Browse the repository at this point in the history
* Apply review fixes

* Create todo to create Goals class

* Skip test_accordion_minimized
  • Loading branch information
ArtemijRodionov authored Jul 2, 2019
1 parent c2ac5ce commit de1fc9c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
6 changes: 4 additions & 2 deletions shopelectro/tests/tests_js_analytics.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,13 +96,15 @@ def tearDown(self):
# delete the session to clear the cart
self.browser.delete_cookie('sessionid')
self.browser.execute_script('localStorage.clear();')
super().setUp()
super().tearDown()

# @todo #808:30m Create Goals class for tests.
# Remove these utility functions in favor of the class.
def get_goals(self):
return self.browser.execute_script('return window.dataLayer.results;')

def get_goal(self, reached, index=0):
"""Get the first reached goal and unfold it."""
"""Get a goal with the given index and unfold it."""
return reached[index][0]['ecommerce']

def test_purchase(self):
Expand Down
4 changes: 4 additions & 0 deletions shopelectro/tests/tests_selenium.py
Original file line number Diff line number Diff line change
Expand Up @@ -857,6 +857,10 @@ def accordion_content(self):
'js-accordion-content-{}'.format(self.page_top.id)
)

# @todo #808:15m Resurrect test_accordion_minimized.
# The test is unstable. https://ci.fidals.com/fidals/shopelectro/1617/10

@unittest.skip
def test_accordion_minimized(self):
"""Accordion item should be minimized by default."""
self.assertFalse(self.accordion_content.is_displayed())
Expand Down

2 comments on commit de1fc9c

@0pdd
Copy link
Collaborator

@0pdd 0pdd commented on de1fc9c Jul 2, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Puzzle 808-f72e84e8 discovered in shopelectro/tests/tests_js_analytics.py and submitted as #929. Please, remember that the puzzle was not necessarily added in this particular commit. Maybe it was added earlier, but we discovered it only now.

@0pdd
Copy link
Collaborator

@0pdd 0pdd commented on de1fc9c Jul 2, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Puzzle 808-1338f575 discovered in shopelectro/tests/tests_selenium.py and submitted as #930. Please, remember that the puzzle was not necessarily added in this particular commit. Maybe it was added earlier, but we discovered it only now.

Please sign in to comment.