Commit d0f95c45 by Braden MacDonald

Use new bok-choy, disable native firefox events

parent 30173c47
......@@ -3,4 +3,5 @@
pip install -e git://github.com/edx/xblock-sdk.git@v0.1.2#egg=xblock-sdk==v0.1.2
cd $VIRTUAL_ENV/src/xblock-sdk/ && pip install -r requirements/base.txt \
&& pip install -r requirements/test.txt && cd -
pip install git+https://github.com/edx/bok-choy.git@0afb723a7b3f23de8d6f44c19d3626ee001ccc1d#egg=bok-choy==0afb723a7b3f23de8d6f44c19d3626ee001ccc1d
pip install -r requirements.txt
......@@ -25,6 +25,15 @@ if __name__ == "__main__":
# Silence too verbose Django logging
logging.disable(logging.DEBUG)
def disable_native_firefox_events(firefox_profile):
"""
If using Firefox, patch bok_choy to use synthetic events, which are much more reliable
See https://bugs.launchpad.net/selenium-simple-test/+bug/1242364
"""
firefox_profile.native_events_enabled = False
from bok_choy.browser import FIREFOX_PROFILE_CUSTOMIZERS
FIREFOX_PROFILE_CUSTOMIZERS.append(disable_native_firefox_events)
try:
os.mkdir('var')
except OSError:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment