Skip to content

Commit

Permalink
fix flaky test
Browse files Browse the repository at this point in the history
  • Loading branch information
artoonie committed Jul 27, 2024
1 parent b25b3c7 commit 5db72ff
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions electionpage/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,8 +118,8 @@ def test_election_pages(self):
self.assertEqual(bargraphButton.get_attribute('class'), 'btn btn-primary')

# And the height was correctly set via PostMessages
self.assertEqual(bargraphIframeWrapper.find_element(
By.TAG_NAME, 'iframe').get_attribute('height'), '328px')
self._ensure_eventually_asserts(lambda: self.assertEqual(bargraphIframeWrapper.find_element(
By.TAG_NAME, 'iframe').get_attribute('height'), '328px'))

@Mocker()
def test_scrape_all(self, requestMock):
Expand Down

0 comments on commit 5db72ff

Please sign in to comment.