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

Commit 9bdc4e1

Browse files
committed
debug
1 parent 572218e commit 9bdc4e1

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

runestone/activecode/test/test_activecode.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,13 +124,14 @@ def test_activity_count(selenium_utils_progress):
124124
def test_sql_activecode(selenium_utils_get):
125125
div_id = "test_activecode_6"
126126
t2 = find_ac(selenium_utils_get, div_id)
127+
import time
128+
time.sleep(1)
127129
click_run(selenium_utils_get, t2)
128130
# Some hacky debug code to try and understand why this fails on Github actions.
129131
for _ in selenium_utils_get.driver.get_log("browser"):
130132
print(_)
131133
from selenium.webdriver.support.ui import WebDriverWait
132134
long_wait = WebDriverWait(selenium_utils_get.driver, 30)
133-
import time
134135
start = time.time()
135136
try:
136137
long_wait.until(EC.text_to_be_present_in_element((By.ID, f"{div_id}_stdout"), "You"))

0 commit comments

Comments
 (0)