aboutsummaryrefslogtreecommitdiffstats
path: root/uitest/src/test/java
diff options
context:
space:
mode:
authorTeemu Suo-Anttila <tsuoanttila@users.noreply.github.com>2018-06-05 13:16:34 +0300
committerGitHub <noreply@github.com>2018-06-05 13:16:34 +0300
commit3556947300024080f2bc5ae82a98bf1f6056a019 (patch)
treeef68109f9f6cf6c7fee555f05161a8836ed5db3d /uitest/src/test/java
parent1dbae8ca96c4dfee00a9719f745b29b0a3f9123b (diff)
downloadvaadin-framework-3556947300024080f2bc5ae82a98bf1f6056a019.tar.gz
vaadin-framework-3556947300024080f2bc5ae82a98bf1f6056a019.zip
Rename Chrome screenshots (#10966)
Diffstat (limited to 'uitest/src/test/java')
-rw-r--r--uitest/src/test/java/com/vaadin/tests/application/CriticalNotificationsTest.java1
-rw-r--r--uitest/src/test/java/com/vaadin/tests/tb3/AbstractTB3Test.java5
2 files changed, 4 insertions, 2 deletions
diff --git a/uitest/src/test/java/com/vaadin/tests/application/CriticalNotificationsTest.java b/uitest/src/test/java/com/vaadin/tests/application/CriticalNotificationsTest.java
index d0ae375db0..dc74ab74b5 100644
--- a/uitest/src/test/java/com/vaadin/tests/application/CriticalNotificationsTest.java
+++ b/uitest/src/test/java/com/vaadin/tests/application/CriticalNotificationsTest.java
@@ -5,7 +5,6 @@ import org.junit.Test;
import com.vaadin.testbench.elements.ButtonElement;
import com.vaadin.testbench.elements.CheckBoxElement;
import com.vaadin.testbench.elements.NotificationElement;
-import com.vaadin.testbench.parallel.BrowserUtil;
import com.vaadin.tests.tb3.MultiBrowserThemeTest;
public class CriticalNotificationsTest extends MultiBrowserThemeTest {
diff --git a/uitest/src/test/java/com/vaadin/tests/tb3/AbstractTB3Test.java b/uitest/src/test/java/com/vaadin/tests/tb3/AbstractTB3Test.java
index 5e6f866b7f..674b329a44 100644
--- a/uitest/src/test/java/com/vaadin/tests/tb3/AbstractTB3Test.java
+++ b/uitest/src/test/java/com/vaadin/tests/tb3/AbstractTB3Test.java
@@ -149,18 +149,21 @@ public abstract class AbstractTB3Test extends ParallelTest {
} catch (UnsupportedOperationException e) {
// Opera does not support this...
}
+ screenshotOnFailure.setQuitDriverOnFinish(false);
}
/**
* Method for closing the tested application.
*/
protected void closeApplication() {
- if (driver != null) {
+ if (getDriver() != null) {
try {
openTestURL("closeApplication");
} catch (Exception e) {
e.printStackTrace();
}
+ // Finally quit the driver.
+ driver.quit();
}
}