use of com.wikia.webdriver.common.core.annotations.RelatedIssue in project selenium-tests by Wikia.
the class BasicActions method sortingVideos.
@Test(groups = { "IntraWikiSearch_006", "Search", "Search3" })
@RelatedIssue(issueID = "MAIN-7142", comment = "Product code defect. No need to test manually")
public void sortingVideos() {
IntraWikiSearchPageObject search = new IntraWikiSearchPageObject(driver);
search.openWikiPage(testedWiki);
search.searchFor(SearchContent.SEARCH_PHRASE_RESULTS);
search.selectPhotosVideos();
search.selectVideosOnly();
search.verifyTitlesNotEmpty();
search.sortBy(sortOptions.DURATION);
List<String> titles1 = search.getTitles();
search.sortBy(sortOptions.RELEVANCY);
List<String> titles2 = search.getTitles();
search.sortBy(sortOptions.PUBLISH_DATE);
List<String> titles3 = search.getTitles();
search.compareTitleListsNotEquals(titles1, titles2);
search.compareTitleListsNotEquals(titles1, titles3);
search.compareTitleListsNotEquals(titles2, titles3);
}
use of com.wikia.webdriver.common.core.annotations.RelatedIssue in project selenium-tests by Wikia.
the class BasicActions method sortingImages.
@Test(groups = { "IntraWikiSearch_007", "Search", "Search4" })
@RelatedIssue(issueID = "MAIN-7142", comment = "Product code defect. No need to test manually")
public void sortingImages() {
IntraWikiSearchPageObject search = new IntraWikiSearchPageObject(driver);
search.openWikiPage(testedWiki);
search.searchFor(SearchContent.SEARCH_PHRASE_RESULTS);
search.selectPhotosVideos();
search.selectPhotosOnly();
search.verifyTitlesNotEmpty();
search.sortBy(sortOptions.RELEVANCY);
List<String> titles1 = search.getTitles();
search.sortBy(sortOptions.PUBLISH_DATE);
List<String> titles2 = search.getTitles();
search.compareTitleListsNotEquals(titles1, titles2);
}
use of com.wikia.webdriver.common.core.annotations.RelatedIssue in project selenium-tests by Wikia.
the class BasicActions method defaultNamespaces.
@Test(groups = { "IntraWikiSearch_011", "Search", "Search3" })
@RelatedIssue(issueID = "MAIN-7142", comment = "Product code defect. No need to test manually")
public void defaultNamespaces() {
IntraWikiSearchPageObject search = new IntraWikiSearchPageObject(driver);
search.openWikiPage(testedWiki);
search.searchFor(SearchContent.SEARCH_PHRASE_RESULTS);
search.clickAdvancedButton();
search.verifyDefaultNamespaces();
}
use of com.wikia.webdriver.common.core.annotations.RelatedIssue in project selenium-tests by Wikia.
the class VEAddMapTests method VEAddMapTests_002_CheckEmptyMapWiki.
@RelatedIssue(issueID = "WW-108")
@Test(enabled = false, groups = { "VEAddMapTests_002", "VEEmptyMap" })
@Execute(asUser = User.USER_12, onWikia = URLsContent.RTE_DISABLED_WIKI)
public void VEAddMapTests_002_CheckEmptyMapWiki() {
articleName = PageContent.ARTICLE_NAME_PREFIX + DateTime.now().getMillis();
VisualEditorPageObject ve = new VisualEditorPageObject().openVEOnArticle(wikiURL, articleName);
ve.verifyVEToolBarPresent();
ve.verifyEditorSurfacePresent();
VisualEditorAddMapDialog mapDialog = (VisualEditorAddMapDialog) ve.openDialogFromMenu(InsertDialog.MAP);
mapDialog.checkIsEmptyState();
}
use of com.wikia.webdriver.common.core.annotations.RelatedIssue in project selenium-tests by Wikia.
the class VEAddMapTests method VEAddMapTests_001_AddExistingMap.
@RelatedIssue(issueID = "WW-108")
@Test(enabled = false, groups = { "VEAddMapTests_001", "VEAddExistingMap" })
@Execute(asUser = User.USER_12, onWikia = URLsContent.VE_ENABLED_WIKI)
public void VEAddMapTests_001_AddExistingMap() {
articleName = PageContent.ARTICLE_NAME_PREFIX + DateTime.now().getMillis();
VisualEditorPageObject ve = new VisualEditorPageObject().openVEOnArticle(wikiURL, articleName);
ve.verifyVEToolBarPresent();
ve.verifyEditorSurfacePresent();
VisualEditorAddMapDialog mapDialog = (VisualEditorAddMapDialog) ve.openDialogFromMenu(InsertDialog.MAP);
VisualEditorPageObject veNew = mapDialog.addExistingMap(0);
veNew.verifyMapPresent();
VisualEditorSaveChangesDialog save = veNew.clickPublishButton();
ArticlePageObject article = save.savePage();
article.verifyVEPublishComplete();
}
Aggregations