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

Commit 73b0e8a

Browse files
committed
Add: Debug code to try and understand test failures.
1 parent 01a7bb9 commit 73b0e8a

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

runestone/activecode/test/test_activecode.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,12 @@ def test_sql_activecode(selenium_utils_get):
125125
div_id = "test_activecode_6"
126126
t2 = find_ac(selenium_utils_get, div_id)
127127
click_run(selenium_utils_get, t2)
128-
selenium_utils_get.wait.until(EC.text_to_be_present_in_element((By.ID, f"{div_id}_stdout"), "You"))
128+
# Some hacky debug code to try and understand why this fails on Github actions.
129+
try:
130+
selenium_utils_get.wait.until(EC.text_to_be_present_in_element((By.ID, f"{div_id}_stdout"), "You"))
131+
except:
132+
print(selenium_utils_get.driver.find_element_by_id(f"{div_id}_stdout").text)
133+
raise
129134
res = selenium_utils_get.driver.find_element_by_id(f"{div_id}_sql_out")
130135
assert res
131136
out = selenium_utils_get.driver.find_element_by_id(f"{div_id}_stdout")

0 commit comments

Comments
 (0)