@Test(groups = {"MercuryLoginTest_010"}) @Execute(onWikia = "mercuryautomationtesting") public void MercuryLoginTest_010_signInLinkWorksOnJoinPage() { LoginPageObject loginPageObject = new LoginPageObject(driver).get(); String expectedHeader = loginPageObject.getLoginHeaderText(); JoinPageObject joinPageObject = new JoinPageObject(driver).get(); joinPageObject.clickSignInLink(); Assertion.assertEquals(loginPageObject.getLoginHeaderText(), expectedHeader); }
@Test(groups = {"MercuryLoginTest_009"}) @Execute(onWikia = "mercuryautomationtesting") public void MercuryLoginTest_009_registerButtonWorksOnJoinPage() { SignupPageObject registrationPage = new SignupPageObject(driver); registrationPage.openRegisterPage(); String expectedHeader = registrationPage.getRegisterHeaderText(); JoinPageObject joinPageObject = new JoinPageObject(driver).get(); joinPageObject.clickRegisterWithEmail(); Assertion.assertEquals(registrationPage.getRegisterHeaderText(), expectedHeader); }
@Test(groups = {"MercuryLoginTest_008"}) @Execute(onWikia = "mercuryautomationtesting") public void MercuryLoginTest_008_userIsTakenToJoinPage() { JoinPageObject joinPageObject = new JoinPageObject(driver).get(); String expectedMessage = joinPageObject.getJoinTodayText(); ArticlePageObject homePage = new ArticlePageObject(driver); homePage.openMainPage(wikiURL); TopBarComponentObject loginIcon = new TopBarComponentObject(driver); loginIcon.clickLogInIcon(); Assertion.assertEquals(joinPageObject.getJoinTodayText(), expectedMessage); }