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

Commit 7008fd7

Browse files
committed
Fix: Add another delay to work around unknown time to run code in an ActiveCode.
1 parent cab7246 commit 7008fd7

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
@@ -140,6 +140,7 @@ def test_sql_activecode(selenium_utils_get):
140140
div_id = "test_activecode_6"
141141
t2 = find_ac(selenium_utils_get, div_id)
142142
click_run(selenium_utils_get, t2)
143+
time.sleep(2)
143144
selenium_utils_get.wait.until(EC.text_to_be_present_in_element((By.ID, f"{div_id}_stdout"), "You"))
144145
res = selenium_utils_get.driver.find_element_by_id(f"{div_id}_sql_out")
145146
assert res
@@ -149,6 +150,7 @@ def test_sql_activecode(selenium_utils_get):
149150
div_id = "test_activecode_7"
150151
t2 = find_ac(selenium_utils_get, div_id)
151152
click_run(selenium_utils_get, t2)
153+
time.sleep(2)
152154
out = selenium_utils_get.driver.find_element_by_id(f"{div_id}_stdout")
153155
assert "" == out.text.strip()
154156

0 commit comments

Comments
 (0)