Pārlūkot izejas kodu

Make vanilla SingleBrowserTest work with the runLocally property

Change-Id: I15c9cf94be71a74229ee32f711f187b1ebc8a993
tags/7.6.0.alpha2
Leif Åstrand pirms 9 gadiem
vecāks
revīzija
6c759028b2

+ 2
- 2
uitest/src/com/vaadin/tests/tb3/PrivateTB3Configuration.java Parādīt failu

@@ -97,7 +97,7 @@ public abstract class PrivateTB3Configuration extends ScreenshotTB3Test {
super.setup();
}

private static DesiredCapabilities getRunLocallyCapabilities() {
protected static DesiredCapabilities getRunLocallyCapabilities() {
VaadinBrowserFactory factory = new VaadinBrowserFactory();
try {
return factory.create(Browser.valueOf(properties.getProperty(
@@ -159,7 +159,7 @@ public abstract class PrivateTB3Configuration extends ScreenshotTB3Test {
return getConfiguredDeploymentHostname();
}

private boolean isRunLocally() {
protected boolean isRunLocally() {
if (properties.containsKey(RUN_LOCALLY_PROPERTY)) {
return true;
}

+ 3
- 0
uitest/src/com/vaadin/tests/tb3/SingleBrowserTest.java Parādīt failu

@@ -25,6 +25,9 @@ import com.vaadin.testbench.parallel.Browser;
public abstract class SingleBrowserTest extends PrivateTB3Configuration {
@Override
public List<DesiredCapabilities> getBrowsersToTest() {
if (isRunLocally()) {
return Collections.singletonList(getRunLocallyCapabilities());
}
return Collections.singletonList(Browser.PHANTOMJS
.getDesiredCapabilities());
}

Notiek ielāde…
Atcelt
Saglabāt