use of com.wikia.webdriver.common.core.annotations.Execute in project selenium-tests by Wikia.
the class ReportingPostTests method userOnDesktopCanNotSeeDeletedPostOnPostDetailsPage.
@Test(groups = "discussions-loggedInUsersDesktopReporting")
@Execute(asUser = User.USER)
@InBrowser(browser = Browser.FIREFOX, browserSize = DESKTOP_RESOLUTION)
public void userOnDesktopCanNotSeeDeletedPostOnPostDetailsPage() {
final PostEntity.Data data = createAndReportAndDeletePostRemotely();
final PostDetailsPage page = openPostDetailsPageAndWaitUntilLoaded(data.getId());
assertTrue(page.getErrorMessages().isErrorMessagePresent(), NOT_VISIBLE_DELETED_POST_MESSAGE);
}
use of com.wikia.webdriver.common.core.annotations.Execute in project selenium-tests by Wikia.
the class ReportingPostTests method anonUserOnDesktopCanNotReportPostOnUserPostsPage.
@Test(groups = "discussions-anonUserDesktopReporting")
@Execute(asUser = User.ANONYMOUS)
@InBrowser(browser = Browser.FIREFOX, browserSize = DESKTOP_RESOLUTION)
public void anonUserOnDesktopCanNotReportPostOnUserPostsPage() {
final UserPostsPage page = openDefaultUserPostPageWaiting();
assertFalse(isReportPostOptionAvailableOn(page), NO_REPORT_POST_OPTION_MESSAGE);
}
use of com.wikia.webdriver.common.core.annotations.Execute in project selenium-tests by Wikia.
the class ReportingPostTests method userOnMobileCanNotSeeDeletedPostOnPostsListPage.
@Test(groups = "discussions-loggedInUsersMobileReporting")
@Execute(asUser = User.USER)
@InBrowser(browser = Browser.CHROME, emulator = Emulator.GOOGLE_NEXUS_5)
public void userOnMobileCanNotSeeDeletedPostOnPostsListPage() {
final PostEntity.Data data = createAndReportAndDeletePostRemotely();
final PostEntity post = openPostListPageAndWaitUntilLoaded().getPost().findPostById(data.getId());
assertNull(post, NOT_VISIBLE_DELETED_POST_MESSAGE);
}
use of com.wikia.webdriver.common.core.annotations.Execute in project selenium-tests by Wikia.
the class PinTypeMapTests method PinTypeMapTests_001_VerifyImageValidationInPinTypeModal.
@Test(groups = { "PinTypeMapTests_001", "PinTypeMapTests", "InteractiveMaps" })
@DontRun(env = { "dev", "sandbox", "preview" })
@Execute(asUser = User.USER)
@RelatedIssue(issueID = "QAART-690", comment = "functionality status is deprecated, " + "monitor the issue to find out resolution")
public void PinTypeMapTests_001_VerifyImageValidationInPinTypeModal() {
WikiBasePageObject base = new WikiBasePageObject();
InteractiveMapsPageObject specialMap = base.openSpecialInteractiveMaps(wikiURL);
InteractiveMapPageObject selectedMap = specialMap.clickMapWithIndex(InteractiveMapsContent.SELECTED_MAP_INDEX);
selectedMap.verifyMapOpened();
selectedMap.clickEditPinTypesButton();
CreatePinTypesComponentObject pinTypeModal = new CreatePinTypesComponentObject(driver);
pinTypeModal.verifyPinTypesDialog();
pinTypeModal.selectFileToUpload(PageContent.SMALLFILE, "Small image");
pinTypeModal.verifyErrorExists();
pinTypeModal.selectFileToUpload(PageContent.BROKENEXTENSIONFILE, "Image with wrong extension");
pinTypeModal.verifyErrorExists();
}
use of com.wikia.webdriver.common.core.annotations.Execute in project selenium-tests by Wikia.
the class VetAddingVideoTests method VetAddVideo_002_MessageWallLibrary.
@Test(groups = { "VetAddVideo_002" })
@RelatedIssue(issueID = "QAART-889")
@Execute(asUser = User.USER)
public void VetAddVideo_002_MessageWallLibrary() {
MessageWall wall = new MessageWall(driver).open(credentials.userName);
String message = PageContent.MESSAGE_WALL_MESSAGE_PREFIX + wall.getTimeStamp();
String title = PageContent.MESSAGE_WALL_TITLE_PREFIX + wall.getTimeStamp();
MiniEditorComponentObject mini = wall.triggerMessageArea();
wall.clickBoldButton();
mini.switchAndWrite(message);
wall.setTitle(title);
VetAddVideoComponentObject vetAddingVideo = mini.clickAddVideo();
VetOptionsComponentObject vetOptions = vetAddingVideo.addVideoByQuery(VideoContent.WIKIA_VIDEO_QUERY, 0);
vetOptions.setCaption(PageContent.CAPTION);
vetOptions.submit();
mini.verifyVideoMiniEditor();
wall.submit();
wall.verifyPostedMessageVideo(title);
}
Aggregations