From 32aba81d1d0c7c084f07518c1de98f17667ea6e7 Mon Sep 17 00:00:00 2001 From: Anna Koskinen Date: Fri, 22 Nov 2019 10:24:35 +0200 Subject: Add support for excess slashes within static file request path. (#11827) --- .../src/test/java/com/example/VaadinSpringBootSmokeIT.java | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'test') 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 @@ -39,6 +39,13 @@ 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(); @@ -46,6 +53,13 @@ public class VaadinSpringBootSmokeIT extends TestBenchTestCase { @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(); -- cgit v1.2.3