You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jun 7, 2023. It is now read-only.
# use call so that npm run build completes before we move on to runestone build
74
+
# use `run` so that `npm run build` completes before we move on to `runestone build`
74
75
# otherwise the runestone build may fail due to lack of a runestone.js file!
75
-
p=subprocess.call(
76
+
p=subprocess.run(
76
77
["npm.cmd"ifIS_WINDOWSelse"npm", "run", "build"],
77
78
stdout=subprocess.PIPE,
78
79
stderr=subprocess.PIPE,
79
80
universal_newlines=True,
80
81
)
82
+
self.assertFalse(p.returncode)
81
83
# Compile the docs. Save the stdout and stderr for examination.
82
84
p=subprocess.Popen(
83
85
["runestone", "build", "--all"],
@@ -230,6 +232,9 @@ def setUp(self):
230
232
self.host=HOST_URL
231
233
# Add an `implicit wait <https://selenium-python.readthedocs.io/waits.html#implicit-waits>`_.
232
234
self.driver.implicitly_wait(5)
235
+
# For cases where an implicit wait does not help. For example waiting for text to appear
236
+
# after running an activecode. We create an explicit wait object.
237
+
self.wait=WebDriverWait(self.driver, 5)
233
238
234
239
deftearDown(self):
235
240
# Clear as much as possible, to present an almost-fresh instance of a browser for the next test. (Shutting down then starting up a browswer is very slow.)
0 commit comments