Skip to content
This repository has been archived by the owner on Dec 23, 2017. It is now read-only.

Update glossary selenium test. #862

Merged
merged 1 commit into from
Oct 20, 2015
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions tests/selenium/landing_page_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,7 @@ def testGlossaryToggle(self):
self.driver.find_element_by_css_selector('.js-glossary-toggle').click()
glossary = self.getGlossary()
self.assertIn('is-open', glossary.get_attribute('class'))
hide = glossary.find_element_by_css_selector('.toggle')
WebDriverWait(self.driver, 1).until(lambda driver: hide.is_displayed())
hide.click()
self.driver.find_element_by_tag_name('body').send_keys(K.ESCAPE)
self.assertNotIn('is-open', glossary.get_attribute('class'))

def testGlossarySearch(self):
Expand Down