Added test case to check existence of main menu buttons.

This commit is contained in:
Dirk Jahnke 2019-07-27 00:27:00 +02:00
parent cf5579d82b
commit 5c5d50ec13
1 changed files with 18 additions and 0 deletions

View File

@ -91,6 +91,24 @@ public class BasicTest {
driver.switchTo().parentFrame(); driver.switchTo().parentFrame();
} }
@Test
public void verifyExistenceOfMainMenuButtons() {
driver.switchTo().frame("oben");
// Verify existence of menu buttons
Assert.assertEquals(FredlTestHelper.elementExistsById("admin-menu-button"), true);
Assert.assertEquals(FredlTestHelper.elementExistsById("loco-menu-button"), true);
Assert.assertEquals(FredlTestHelper.elementExistsById("cargo-cars-menu-button"), true);
Assert.assertEquals(FredlTestHelper.elementExistsById("passenger-cars-menu-button"), true);
Assert.assertEquals(FredlTestHelper.elementExistsById("module-menu-button"), true);
Assert.assertEquals(FredlTestHelper.elementExistsById("equip-menu-button"), true);
Assert.assertEquals(FredlTestHelper.elementExistsById("meeting-menu-button"), true);
Assert.assertEquals(FredlTestHelper.elementExistsById("fileman-menu-button"), true);
Assert.assertEquals(FredlTestHelper.elementExistsById("calendar-menu-button"), true);
Assert.assertEquals(FredlTestHelper.elementExistsById("idman-menu-button"), true);
Assert.assertEquals(FredlTestHelper.elementExistsById("lola-menu-button"), true);
Assert.assertEquals(FredlTestHelper.elementExistsById("logout-menu-button"), true); driver.switchTo().parentFrame();
}
@Test @Test
public void verifyLogout() { public void verifyLogout() {
String frameObenName = "oben"; String frameObenName = "oben";