Bug 1142699 - testReaderModeTitle: Wait for Gecko to be ready and reduce waiting time for reader mode to 30 seconds again. r=mcomella

This commit is contained in:
Sebastian Kaspari 2015-03-19 23:39:59 +01:00
parent 16e78acde2
commit ae3a8d4650
2 changed files with 6 additions and 4 deletions

View File

@ -33,10 +33,9 @@ public class ToolbarComponent extends BaseComponent {
private static final String URL_HTTP_PREFIX = "http://";
// We are waiting up to 60 seconds instead of the default waiting time
// because reader mode parsing can take quite some time on slower devices
// See Bug 1142699
private static final int READER_MODE_WAIT_MS = 60000;
// We are waiting up to 30 seconds instead of the default waiting time because reader mode
// parsing can take quite some time on slower devices (Bug 1142699)
private static final int READER_MODE_WAIT_MS = 30000;
public ToolbarComponent(final UITestContext testContext) {
super(testContext);

View File

@ -1,5 +1,6 @@
package org.mozilla.gecko.tests;
import org.mozilla.gecko.tests.helpers.GeckoHelper;
import org.mozilla.gecko.tests.helpers.NavigationHelper;
/**
@ -7,6 +8,8 @@ import org.mozilla.gecko.tests.helpers.NavigationHelper;
*/
public class testReaderModeTitle extends UITest {
public void testReaderModeTitle() {
GeckoHelper.blockForReady();
NavigationHelper.enterAndLoadUrl(StringHelper.ROBOCOP_READER_MODE_BASIC_ARTICLE);
mToolbar.pressReaderModeButton();