aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorAnna Koskinen <Ansku@users.noreply.github.com>2019-11-22 10:56:54 +0200
committerTatu Lund <tatu@vaadin.com>2019-11-22 10:56:54 +0200
commitdc4ce2ef4905ab0a4576411af0adb562940841a1 (patch)
tree879d70d882d4e3c5777ad03e4a7252c7a401ef5d /test
parentbdc61a37626b76c259c32f32b6c17402b151b920 (diff)
downloadvaadin-framework-8.9.3.tar.gz
vaadin-framework-8.9.3.zip
Add support for excess slashes within static file request path. (#11827) (#11829)8.9.3
Diffstat (limited to 'test')
-rw-r--r--test/spring-boot-subcontext/src/test/java/com/example/VaadinSpringBootSmokeIT.java14
1 files changed, 14 insertions, 0 deletions
diff --git a/test/spring-boot-subcontext/src/test/java/com/example/VaadinSpringBootSmokeIT.java b/test/spring-boot-subcontext/src/test/java/com/example/VaadinSpringBootSmokeIT.java
index f6f3db6243..bbd0bc628f 100644
--- a/test/spring-boot-subcontext/src/test/java/com/example/VaadinSpringBootSmokeIT.java
+++ b/test/spring-boot-subcontext/src/test/java/com/example/VaadinSpringBootSmokeIT.java
@@ -40,12 +40,26 @@ public class VaadinSpringBootSmokeIT extends TestBenchTestCase {
@Test
public void testPageLoadsAndButtonWorks() {
getDriver().navigate()
+ .to("http://localhost:" + port + DemoApplication.CONTEXT);
+ runSmokeTest();
+ }
+
+ @Test
+ public void testPageLoadsAndButtonWorksWithExtraSlash() {
+ getDriver().navigate()
.to("http://localhost:" + port + "/" + DemoApplication.CONTEXT);
runSmokeTest();
}
@Test
public void testSubPathPageLoadsAndButtonWorks() {
+ getDriver().navigate().to("http://localhost:" + port
+ + DemoApplication.CONTEXT + "/" + SubPathUI.SUBPATH);
+ runSmokeTest();
+ }
+
+ @Test
+ public void testSubPathPageLoadsAndButtonWorksWithExtraSlash() {
getDriver().navigate().to("http://localhost:" + port + "/"
+ DemoApplication.CONTEXT + "/" + SubPathUI.SUBPATH);
runSmokeTest();