Skip to content
This repository was archived by the owner on Jun 7, 2023. It is now read-only.

Commit d53d322

Browse files
committed
Fix: Add a timeout to avoid failures on Windows.
1 parent ffc5346 commit d53d322

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

runestone/activecode/test/test_activecode.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,8 @@ def test_activity_count(self):
9090
rb.click()
9191
pb = self.driver.find_element_by_id("subchapterprogress")
9292
self.assertIsNotNone(pb)
93+
# Wait for the JS to run. Increase this delay if the next assertion fails.
94+
time.sleep(1)
9395
total = self.driver.find_element_by_id("scprogresstotal").text.strip()
9496
self.assertEqual(2, int(total))
9597
possible = self.driver.find_element_by_id("scprogressposs").text.strip()

0 commit comments

Comments
 (0)