Commit 1fac0ffa by Braden MacDonald

Attempted fix for flaky test

parent 207c9262
...@@ -3,6 +3,7 @@ import base64 ...@@ -3,6 +3,7 @@ import base64
from collections import namedtuple from collections import namedtuple
import os.path import os.path
from selenium.webdriver.common.keys import Keys from selenium.webdriver.common.keys import Keys
from selenium.webdriver.support.ui import WebDriverWait
from xblockutils.resources import ResourceLoader from xblockutils.resources import ResourceLoader
...@@ -109,6 +110,8 @@ class SizingTests(InteractionTestBase, BaseIntegrationTest): ...@@ -109,6 +110,8 @@ class SizingTests(InteractionTestBase, BaseIntegrationTest):
def _size_for_mobile(self): def _size_for_mobile(self):
self.browser.set_window_size(375, 627) # iPhone 6 viewport size self.browser.set_window_size(375, 627) # iPhone 6 viewport size
wait = WebDriverWait(self.browser, 2)
wait.until(lambda browser: browser.get_window_size()["width"] == 375)
def test_wide_image_mobile(self): def test_wide_image_mobile(self):
""" Test the upper, larger, wide image in a mobile-sized window """ """ Test the upper, larger, wide image in a mobile-sized window """
......
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