aboutsummaryrefslogtreecommitdiffstats
path: root/uitest/src/test/java
diff options
context:
space:
mode:
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();
}
}