Skip to content
Merged
Show file tree
Hide file tree
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
6 changes: 4 additions & 2 deletions electionpage/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,9 +114,11 @@ def test_election_pages(self):
self.assertIsNotNone(bargraphIframeWrapper.get_attribute('data-src'))
self.assertEqual(bargraphButton.get_attribute('class'), 'btn btn-secondary')

# Click on bargraph button, and the opposite is true
# Click on bargraph button, and the opposite is true.
# The iframe is inserted on shown.bs.collapse, which fires asynchronously after the click.
bargraphButton.click()
self.assertIsNone(bargraphIframeWrapper.get_attribute('data-src'))
self._ensure_eventually_asserts(
lambda: self.assertIsNone(bargraphIframeWrapper.get_attribute('data-src')))
self.assertEqual(bargraphButton.get_attribute('class'), 'btn btn-primary')

# And the height was correctly set via PostMessages
Expand Down
Loading
Loading