@Test @UseUnstablePageLoadStrategy public void signUpWithFacebook() { new RemoveFacebookPageObject(driver) .removeWikiaApps(user.getEmail(), user.getPassword()) .logOutFB(); WikiBasePageObject base = new WikiBasePageObject(driver); base.openWikiPage(wikiURL); FacebookMainPageObject fbLogin = base.openFacebookMainPage(); FacebookUserPageObject userFB; userFB = fbLogin.login(user.getEmail(), user.getPassword()); userFB.verifyPageLogo(); SignUpPageObject signUp = userFB.navigateToSpecialSignUpPage(wikiURL); FacebookSignupModalComponentObject fbModal = signUp.clickFacebookSignUp(); fbModal.acceptWikiaAppPolicy(); String userName = "******" + DateTime.now().getMillis(); String password = "******" + DateTime.now().getMillis(); fbModal.typeUserName(userName); fbModal.typePassword(password); fbModal.createAccount(); base.openWikiPage(wikiURL); base.appendToUrl("noads=1"); base.verifyUserLoggedIn(userName); base.logOut(wikiURL); }
@Test(groups = {"anonSearch", "Search", "Search1"}) public void anonSearch() { WikiBasePageObject base = new WikiBasePageObject(driver); base.openWikiPage(testedWiki); NavigationBar navigation = new NavigationBar(driver); IntraWikiSearchPageObject search = navigation.searchFor(SearchContent.SEARCH_PHRASE_RESULTS); search.verifyFirstArticleNameTheSame(SearchContent.SEARCH_PHRASE_RESULTS); }