From 871e9c44b4fe903bdbf729f91ad2bb494cdabdcf Mon Sep 17 00:00:00 2001 From: viorelaioia Date: Wed, 11 Feb 2015 18:21:03 +0200 Subject: [PATCH] Bug 1121978 - Test test_keyboard_predictive_key.py is failing intermittently, wrong predictive word is selected --- .../gaiatest/tests/functional/keyboard/manifest.ini | 2 ++ .../tests/functional/keyboard/test_keyboard_predictive_key.py | 3 +++ 2 files changed, 5 insertions(+) diff --git a/tests/python/gaia-ui-tests/gaiatest/tests/functional/keyboard/manifest.ini b/tests/python/gaia-ui-tests/gaiatest/tests/functional/keyboard/manifest.ini index 4466cb0a1c98..79f6df7b8806 100644 --- a/tests/python/gaia-ui-tests/gaiatest/tests/functional/keyboard/manifest.ini +++ b/tests/python/gaia-ui-tests/gaiatest/tests/functional/keyboard/manifest.ini @@ -10,6 +10,8 @@ skip-if = device == "desktop" && os == "linux" && debug [test_number_keyboard.py] [test_keyboard_predictive_key.py] +# Bug 1008932 - On desktopb2g, mozOrientation reports landscape when Gaia is oriented in portrait +fail-if = device == "desktop" [test_email_keyboard.py] diff --git a/tests/python/gaia-ui-tests/gaiatest/tests/functional/keyboard/test_keyboard_predictive_key.py b/tests/python/gaia-ui-tests/gaiatest/tests/functional/keyboard/test_keyboard_predictive_key.py index 6d7f43be0a29..0676b9673034 100644 --- a/tests/python/gaia-ui-tests/gaiatest/tests/functional/keyboard/test_keyboard_predictive_key.py +++ b/tests/python/gaia-ui-tests/gaiatest/tests/functional/keyboard/test_keyboard_predictive_key.py @@ -15,6 +15,9 @@ def setUp(self): self.data_layer.set_setting('keyboard.autocorrect', True) def test_keyboard_predictive_key(self): + # Check that the device is in portrait mode as the autocorrect words returned depend on the screen orientation + self.assertEqual('portrait-primary', self.device.screen_orientation) + self.ui_tests = UiTests(self.marionette) self.ui_tests.launch()