use of com.wikia.webdriver.pageobjectsfactory.pageobject.WikiBasePageObject in project selenium-tests by Wikia.
the class BlockedUserMapTests method BlockedUserMapTests_002_VerifyUserCannotAddPin.
@RelatedIssue(issueID = "", comment = "Functionality is being depracated NO need to test manually")
@DontRun(env = { "dev", "sandbox", "preview" })
@Test(groups = { "BlockedUserMapTests_002", "BlockedUserMapTests", "InteractiveMaps" })
public void BlockedUserMapTests_002_VerifyUserCannotAddPin() {
WikiBasePageObject base = new WikiBasePageObject();
base.loginAs(credentials.userNameBlockedAccount, credentials.passwordBlockedAccount, wikiURL);
InteractiveMapsPageObject specialMaps = base.openSpecialInteractiveMaps(wikiURL);
InteractiveMapPageObject selectedMap = specialMaps.clickMapWithIndex(InteractiveMapsContent.SELECTED_MAP_INDEX);
AddPinComponentObject addPinModal = selectedMap.placePinInMap();
addPinModal.typePinName(InteractiveMapsContent.PIN_NAME);
addPinModal.typePinDescription(InteractiveMapsContent.PIN_DESCRIPTION);
addPinModal.selectPinType();
addPinModal.clickSaveButton();
addPinModal.verifyErrorExists();
}
use of com.wikia.webdriver.pageobjectsfactory.pageobject.WikiBasePageObject in project selenium-tests by Wikia.
the class BlockedUserMapTests method BlockedUserMapTests_006_VerifyUserCannotAddPinOnEmbeddedMap.
@Test(groups = { "BlockedUserMapTests_006", "BlockedUserMapTests", "InteractiveMaps" })
public void BlockedUserMapTests_006_VerifyUserCannotAddPinOnEmbeddedMap() {
WikiBasePageObject base = new WikiBasePageObject();
base.loginAs(credentials.userNameBlockedAccount, credentials.passwordBlockedAccount, wikiURL);
ArticlePageObject article = new ArticlePageObject();
article.open(InteractiveMapsContent.EMBED_MAP_ARTICLE_NAME);
EmbedMapComponentObject embedMapDialog = article.clickViewEmbedMap();
AddPinComponentObject addPinModal = embedMapDialog.placePinInMap();
addPinModal.typePinName(InteractiveMapsContent.PIN_NAME);
addPinModal.typePinDescription(InteractiveMapsContent.PIN_DESCRIPTION);
addPinModal.selectPinType();
addPinModal.clickSaveButton();
addPinModal.verifyErrorExists();
}
use of com.wikia.webdriver.pageobjectsfactory.pageobject.WikiBasePageObject in project selenium-tests by Wikia.
the class BlockedUserMapTests method BlockedUserMapTests_003_VerifyUserCannotCreateRealMap.
@Test(groups = { "BlockedUserMapTests_003", "BlockedUserMapTests", "InteractiveMaps" })
public void BlockedUserMapTests_003_VerifyUserCannotCreateRealMap() {
WikiBasePageObject base = new WikiBasePageObject();
base.loginAs(credentials.userNameBlockedAccount, credentials.passwordBlockedAccount, wikiURL);
InteractiveMapsPageObject specialMaps = base.openSpecialInteractiveMaps(wikiURL);
CreateAMapComponentObject createMap = specialMaps.clickCreateAMap();
CreateRealMapComponentObject realMap = createMap.clickRealMap();
realMap.typeMapName(InteractiveMapsContent.MAP_NAME);
realMap.clickNext();
realMap.verifyErrorExists();
}
use of com.wikia.webdriver.pageobjectsfactory.pageobject.WikiBasePageObject in project selenium-tests by Wikia.
the class LightboxTests method LightboxTest_007_specialVideo.
@Test(groups = "LightboxTest_007")
@InBrowser(browser = Browser.FIREFOX, browserSize = BROWSER_SIZE)
public void LightboxTest_007_specialVideo() {
WikiBasePageObject base = new WikiBasePageObject();
SpecialVideosPageObject specialVideos = base.openSpecialVideoPage(wikiURL);
LightboxComponentObject lightbox = specialVideos.openLightboxForGridVideo(0);
lightbox.verifyLightboxPopup();
lightbox.verifyLightboxVideo();
}
use of com.wikia.webdriver.pageobjectsfactory.pageobject.WikiBasePageObject in project selenium-tests by Wikia.
the class LightboxTests method LightboxTest_008_filepage_video.
/**
* Open lightbox from Special:Videos, verify title url, verify More Info button and verify file
* page (logged-in user)
*/
@Test(groups = "LightboxTest_008")
@Execute(asUser = User.USER, disableFlash = "false")
@InBrowser(browser = Browser.FIREFOX, browserSize = BROWSER_SIZE)
public void LightboxTest_008_filepage_video() {
SpecialVideosPageObject specialVideos = new WikiBasePageObject().openSpecialVideoPage(wikiURL);
LightboxComponentObject lightbox = specialVideos.openLightboxForGridVideo(0);
lightbox.verifyLightboxPopup();
lightbox.verifyLightboxVideo();
FilePage filePage = lightbox.clickTitle();
filePage.verifyTabsExistVideo();
filePage.verifyEmbeddedVideoIsPresent();
}
Aggregations