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