use of com.wikia.webdriver.pageobjectsfactory.componentobject.global_navitagtion.NavigationBar in project selenium-tests by Wikia.
the class LoginTests method anonCanLoginAsJapaneseUserOnAuthModalFromGlobalNavigation.
@Test(groups = "Login_anonCanLoginAsJapaneseUserOnUserLoginSpecialPage", enabled = false)
@Execute(onWikia = "ja.ja-test")
public void anonCanLoginAsJapaneseUserOnAuthModalFromGlobalNavigation() {
WikiBasePageObject base = new WikiBasePageObject();
NavigationBar signInLink = new NavigationBar(driver);
base.openWikiPage(wikiURL);
DetachedSignInPage authModal = new DetachedSignInPage(signInLink.clickOnSignIn());
authModal.login(credentials.userNameJapanese2, credentials.passwordJapanese2);
base.verifyUserLoggedIn(credentials.userNameJapanese2);
}
use of com.wikia.webdriver.pageobjectsfactory.componentobject.global_navitagtion.NavigationBar in project selenium-tests by Wikia.
the class LoginTests method anonCanLoginOnAuthModalFromGlobalNavigation.
@Test(groups = "Login_anonCanLoginOnAuthModalFromGlobalNavigation")
public void anonCanLoginOnAuthModalFromGlobalNavigation() {
WikiBasePageObject base = new WikiBasePageObject();
base.openWikiPage(wikiURL);
NavigationBar signInLink = new NavigationBar(driver);
DetachedSignInPage authModal = new DetachedSignInPage(signInLink.clickOnSignIn());
authModal.login(credentials.userName10, credentials.password10);
base.verifyUserLoggedIn(credentials.userName10);
}
use of com.wikia.webdriver.pageobjectsfactory.componentobject.global_navitagtion.NavigationBar in project selenium-tests by Wikia.
the class GoSearchFeature method AnonFromSuggestion.
@Test(groups = { "Search", "IntraWikiSearch", "goSearchFeature", "AnonFromSuggestion" })
@RelatedIssue(issueID = "MAIN-5045", comment = "please Type 'GON' in search, arrow down to " + "Gonzo article and enter. If you got to " + "Gonzo article the test passed.")
public void AnonFromSuggestion() {
WikiBasePageObject base = new WikiBasePageObject();
base.openWikiPage(testedWiki);
NavigationBar navigation = new NavigationBar(driver);
navigation.triggerSuggestions(SEARCH_SUGGESTION_PHRASE);
navigation.verifySuggestions(SEARCH_ARTICLE);
ArticlePageObject article = navigation.ArrowDownAndEnterSuggestion(SEARCH_ARTICLE);
article.verifyArticleNameInWgPageName(SEARCH_ARTICLE);
}
use of com.wikia.webdriver.pageobjectsfactory.componentobject.global_navitagtion.NavigationBar in project selenium-tests by Wikia.
the class GoSearchFeature method UserFromSuggestion.
@Test(groups = { "Search", "IntraWikiSearch", "goSearchFeature", "UserFromSuggestion" })
@Execute(asUser = User.USER)
public void UserFromSuggestion() {
WikiBasePageObject base = new WikiBasePageObject();
base.openWikiPage(testedWiki);
NavigationBar navigation = new NavigationBar(driver);
navigation.openWikiPage(testedWiki);
navigation.triggerSuggestions(SEARCH_SUGGESTION_PHRASE);
navigation.verifySuggestions(SEARCH_ARTICLE);
ArticlePageObject article = navigation.ArrowDownAndEnterSuggestion(SEARCH_ARTICLE);
article.verifyArticleNameInWgPageName(SEARCH_ARTICLE);
}
use of com.wikia.webdriver.pageobjectsfactory.componentobject.global_navitagtion.NavigationBar in project selenium-tests by Wikia.
the class GoSearchFeature method goSearchPreference.
@Test(groups = { "Search", "IntraWikiSearch", "goSearchFeature", "goSearchPreference" })
@Execute(asUser = User.USER_GO_SEARCH_PREFERRED, onWikia = "muppet")
public void goSearchPreference() {
new WikiBasePageObject().openWikiPage(wikiURL);
NavigationBar navigation = new NavigationBar(driver);
ArticlePageObject article = navigation.goSearchFor(SearchContent.SEARCH_ARTICLE);
article.verifyArticleNameInWgPageName(SearchContent.SEARCH_ARTICLE);
}
Aggregations