diff --git a/src/test/java/org/fremo/fredl/test/BasicTest.java b/src/test/java/org/fremo/fredl/test/BasicTest.java index b695d9f..d2a70a1 100644 --- a/src/test/java/org/fremo/fredl/test/BasicTest.java +++ b/src/test/java/org/fremo/fredl/test/BasicTest.java @@ -91,6 +91,24 @@ public class BasicTest { 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 public void verifyLogout() { String frameObenName = "oben";