use of com.wikia.webdriver.common.core.annotations.RelatedIssue in project selenium-tests by Wikia.
the class FollowingPostTests method userOnDesktopCanFollowAndUnfollowPostOnFollowedPostsPage.
/**
* By default all posts on "Followed" tab are followed.
*/
@Test(groups = "discussions-userDesktopFollowingPost", enabled = false)
@Execute(asUser = User.USER)
@InBrowser(browser = Browser.FIREFOX, emulator = Emulator.GOOGLE_NEXUS_5)
@RelatedIssue(issueID = "SOC-3674", comment = "Introducing pagination")
public void userOnDesktopCanFollowAndUnfollowPostOnFollowedPostsPage() {
createPostAsUserRemotely();
final FollowPage page = FollowPage.open();
final PostActionsRow postActions = clickUnfollowOn(page);
Assertion.assertFalse(postActions.isFollowed(), SHOULD_UNFOLLOW_POST);
clickFollowOn(page);
Assertion.assertTrue(postActions.isFollowed(), SHOULD_FOLLOW_POST);
}
use of com.wikia.webdriver.common.core.annotations.RelatedIssue in project selenium-tests by Wikia.
the class BasicActions method namespaces.
@Test(dataProviderClass = IntraWikiSearchProvider.class, dataProvider = "getNamespaces", groups = { "IntraWikiSearch_013", "Search", "Search1" })
@RelatedIssue(issueID = "MAIN-7142", comment = "Product code defect. No need to test manually")
public void namespaces(String searchPhrase, String namespace) {
IntraWikiSearchPageObject search = new IntraWikiSearchPageObject(driver);
search.openWikiPage(testedWiki);
search.searchFor(searchPhrase);
search.selectAllAdvancedOptions();
SearchPageObject searchPage = new SearchPageObject(driver);
searchPage.clickSearchButton();
searchPage.setSearchTab(SearchPageObject.SearchTab.EVERYTHING);
search.verifyNamespace(namespace);
}
use of com.wikia.webdriver.common.core.annotations.RelatedIssue in project selenium-tests by Wikia.
the class MessageWallTests method userCanCreateAndEditMessage.
@Test(groups = { "MessageWall_001", "MessageWall", "MessageWallTests", "Smoke3" })
@Execute(asUser = User.USER)
@RelatedIssue(issueID = "SUS-801", comment = "The issue might be the reason for 25% failures of this test")
public void userCanCreateAndEditMessage() {
MessageWall wall = new MessageWall(driver).open(User.USER.getUserName());
MiniEditorComponentObject mini = wall.triggerMessageArea();
String message = PageContent.MESSAGE_WALL_MESSAGE_PREFIX + wall.getTimeStamp();
String title = PageContent.MESSAGE_WALL_TITLE_PREFIX + wall.getTimeStamp();
mini.switchAndWrite(message);
wall.setTitle(title);
wall.submit();
wall.verifyMessageText(title, message, User.USER.getUserName());
wall.triggerEditMessageArea();
String messageEdit = PageContent.MESSAGE_WALL_MESSAGE_EDIT_PREFIX + wall.getTimeStamp();
mini.switchAndEditMessageWall(messageEdit);
wall.submitEdition();
wall.verifyMessageEditText(title, messageEdit, User.USER.getUserName());
}
use of com.wikia.webdriver.common.core.annotations.RelatedIssue in project selenium-tests by Wikia.
the class LightboxTests method LightboxTest_009_filepage_image.
/**
* Open lightbox from Special:NewFiles, verify title url, verify More Info button and verify file
* page (logged-in user)
*/
@Test(groups = "LightboxTest_009")
@RelatedIssue(issueID = "MAIN-6170", comment = "Test manually")
@InBrowser(browser = Browser.FIREFOX, browserSize = BROWSER_SIZE)
public void LightboxTest_009_filepage_image() {
WikiBasePageObject base = new WikiBasePageObject();
base.loginAs(credentials.userNameStaff, credentials.passwordStaff, wikiURL);
SpecialNewFilesPage specialNewFiles = base.openSpecialNewFiles(wikiURL);
int itemNumber = 2;
LightboxComponentObject lightbox = specialNewFiles.openLightbox(itemNumber);
lightbox.verifyLightboxPopup();
lightbox.verifyLightboxImage();
// lightbox.verifyTitleUrl(fileUrl);
// lightbox.verifyMoreInfoUrl(fileUrl);
FilePage filePage = lightbox.clickTitle();
filePage.verifyTabsExistImage();
}
use of com.wikia.webdriver.common.core.annotations.RelatedIssue in project selenium-tests by Wikia.
the class PlayingVideoTests method PlayingVideoTests_005_anyclip.
@Test(enabled = false, groups = { "Media", "ProviderTests", "PlayingVideoTests", "PlayingVideoTests_005" })
@RelatedIssue(issueID = "QAART-750", comment = "Test disabled as Selenium doesn't allow to access" + "elements with <object> tag. Check after Selenium update.")
@Execute(onWikia = "sktest123", disableFlash = "false")
@InBrowser(browser = Browser.FIREFOX, browserSize = BROWSER_SIZE)
public void PlayingVideoTests_005_anyclip() {
int itemNumber = 0;
String providerName = "anyclip";
String queryString = "provider=" + providerName;
SpecialVideosPageObject specialVideos = new SpecialVideosPageObject(driver).openSpecialVideoPage(wikiURL, queryString);
LightboxComponentObject lightbox = specialVideos.openLightboxForGridVideo(itemNumber);
lightbox.verifyLightboxPopup();
lightbox.verifyLightboxVideo();
lightbox.verifyVideoAutoplay(providerName);
VideoComponentObject video = lightbox.getVideoPlayer();
video.verifyVideoEmbedWidth();
video.verifyFlashVideoObjectVisible();
video.verifyVideoAnyclipEmbed();
}
Aggregations