Skip to content

Commit

Permalink
update webdriver test (#4829)
Browse files Browse the repository at this point in the history
fix a webdriver test that broke with new population data. 

Update the check to just look for values along the y axis instead of
checking the actual value which can change
  • Loading branch information
chejennifer authored Jan 7, 2025
1 parent 86a7943 commit 81b9e96
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/webdriver/shared_tests/ranking_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,5 +112,5 @@ def test_population_top_ranking_ko(self):
chart = self.driver.find_element(By.CLASS_NAME, 'chart-container')
y_text = chart.find_elements(By.CLASS_NAME,
'y')[0].find_elements(By.TAG_NAME, 'text')
self.assertGreater(len(y_text), 1)
self.assertEqual(y_text[0].text, '0')
self.assertEqual(y_text[-1].text, '12억')

0 comments on commit 81b9e96

Please sign in to comment.