From ef72321fe42206ded3d4cf32b5a31747483c6d85 Mon Sep 17 00:00:00 2001 From: Elliot Smith Date: Tue, 26 Apr 2016 17:12:52 +0100 Subject: bitbake: toaster-tests: maximize browser window when running UI tests In some pages of the UI, the UI tests failed because parts of the UI which should be visible were being reported as not visible by the Selenium PhantomJS driver. On investigation, it turns out that PhantomJS uses a very narrow default window. This meant that some parts of the UI were being clipped and were thus not "visible" to the driver, causing test failures (specifically, on the new custom image page). Ensure that the window is maximized before running tests to prevent this happening. (Bitbake rev: 3f61bef9359926211be7a3177a2071963726ead5) Signed-off-by: Elliot Smith Signed-off-by: Richard Purdie --- bitbake/lib/toaster/tests/browser/selenium_helpers.py | 1 + 1 file changed, 1 insertion(+) (limited to 'bitbake') diff --git a/bitbake/lib/toaster/tests/browser/selenium_helpers.py b/bitbake/lib/toaster/tests/browser/selenium_helpers.py index 56dbe2b344..54db2e8cf2 100644 --- a/bitbake/lib/toaster/tests/browser/selenium_helpers.py +++ b/bitbake/lib/toaster/tests/browser/selenium_helpers.py @@ -130,6 +130,7 @@ class SeleniumTestCase(StaticLiveServerTestCase): # instantiate the Selenium webdriver once for all the test methods # in this test case cls.driver = create_selenium_driver() + cls.driver.maximize_window() @classmethod def tearDownClass(cls): -- cgit v1.2.3-54-g00ecf