From 5c5d50ec1312167f2bc9a7de8f87b2c4b3a8834a Mon Sep 17 00:00:00 2001 From: Dirk Jahnke Date: Sat, 27 Jul 2019 00:27:00 +0200 Subject: [PATCH] Added test case to check existence of main menu buttons. --- .../java/org/fremo/fredl/test/BasicTest.java | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) 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";