[#877] Test for /player/uuid page

This commit is contained in:
Rsl1122 2019-01-17 11:11:09 +02:00
parent 96d6e301dd
commit 1273f26a64

View File

@ -104,6 +104,14 @@ public class JSErrorRegressionTest {
assertFalse(driver.getPageSource(), driver.getPageSource().contains("500 Internal Error occurred")); assertFalse(driver.getPageSource(), driver.getPageSource().contains("500 Internal Error occurred"));
} }
@Test
public void playerPageAccessibleViaUUID() {
System.out.println("Testing Player Page via UUID");
WebDriver driver = seleniumDriver.getDriver();
driver.get("http://localhost:" + TEST_PORT_NUMBER + "/player/" + TestConstants.PLAYER_ONE_UUID);
assertFalse(driver.getPageSource(), driver.getPageSource().contains("404 "));
}
@Test @Test
@Ignore("PlanPluginMocker displays network page for some reason. Investigate") @Ignore("PlanPluginMocker displays network page for some reason. Investigate")
public void serverPageDoesNotHaveJavascriptErrors() { public void serverPageDoesNotHaveJavascriptErrors() {