aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorAnna Koskinen <Ansku@users.noreply.github.com>2019-11-22 10:24:35 +0200
committerGitHub <noreply@github.com>2019-11-22 10:24:35 +0200
commit32aba81d1d0c7c084f07518c1de98f17667ea6e7 (patch)
tree75aab8415abc84f211a50f1fcc8c103392896e51 /test
parent38b7419f2753b108f7f338af94b08cad5be624e3 (diff)
downloadvaadin-framework-32aba81d1d0c7c084f07518c1de98f17667ea6e7.tar.gz
vaadin-framework-32aba81d1d0c7c084f07518c1de98f17667ea6e7.zip
Add support for excess slashes within static file request path. (#11827)
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();