aboutsummaryrefslogtreecommitdiffstats
path: root/uitest/src/test/java/com/vaadin/tests/tb3/AbstractTB3Test.java
diff options
context:
space:
mode:
authorMartin Vysny <martin@vysny.me>2019-06-13 15:03:00 +0300
committerZhe Sun <31067185+ZheSun88@users.noreply.github.com>2019-06-13 15:02:59 +0300
commitd18f8ddbaab2d192dacf7d7485d87b51fe1e7cb9 (patch)
treeaa78b0bfe5a059c6ebca31616020c77b1880a3f6 /uitest/src/test/java/com/vaadin/tests/tb3/AbstractTB3Test.java
parent4665d366472055c2eeb74dc444346b99b3729ecf (diff)
downloadvaadin-framework-d18f8ddbaab2d192dacf7d7485d87b51fe1e7cb9.tar.gz
vaadin-framework-d18f8ddbaab2d192dacf7d7485d87b51fe1e7cb9.zip
Improved fix for #11614 (#11618)
* #11614: Added test which demonstrates that the fix is incomplete * #11614: UI.doRefresh() only calls navigator when the navigation state actually changes * Added javadoc to Navigator.getCurrentNavigationState() * Minor: Removed accidental star imports
Diffstat (limited to 'uitest/src/test/java/com/vaadin/tests/tb3/AbstractTB3Test.java')
-rw-r--r--uitest/src/test/java/com/vaadin/tests/tb3/AbstractTB3Test.java9
1 files changed, 7 insertions, 2 deletions
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 548ac78e78..c835696470 100644
--- a/uitest/src/test/java/com/vaadin/tests/tb3/AbstractTB3Test.java
+++ b/uitest/src/test/java/com/vaadin/tests/tb3/AbstractTB3Test.java
@@ -31,10 +31,8 @@ import org.junit.rules.TestName;
import org.junit.runner.Description;
import org.junit.runner.RunWith;
import org.openqa.selenium.By;
-import org.openqa.selenium.Dimension;
import org.openqa.selenium.JavascriptExecutor;
import org.openqa.selenium.NoSuchElementException;
-import org.openqa.selenium.Point;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.interactions.Actions;
@@ -254,6 +252,13 @@ public abstract class AbstractTB3Test extends ParallelTest {
openTestURL(uiClass, new HashSet<>(Arrays.asList(parameters)));
}
+ /**
+ * Reloads the current page, as if the user pressed F5.
+ */
+ protected void reloadPage() {
+ driver.navigate().refresh();
+ }
+
private void openTestURL(Class<?> uiClass, Set<String> parameters) {
String url = getTestURL(uiClass);