use of com.wikia.webdriver.common.core.annotations.RelatedIssue in project selenium-tests by Wikia.
the class VEAddMapTests method VEAddMapTests_003_InsertMapFromZeroState.
@RelatedIssue(issueID = "WW-108")
@Test(enabled = false, groups = { "VEAddMapTests_003", "VEAddMapFromZeroState" })
@Execute(asUser = User.USER_12, onWikia = URLsContent.VE_DISABLED_WIKI)
public void VEAddMapTests_003_InsertMapFromZeroState() {
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);
CreateAMapComponentObject map = mapDialog.clickCreateAMapButton();
CreateRealMapComponentObject realMap = map.clickRealMap();
realMap.verifyRealMapPreviewImage();
realMap.typeMapName(InteractiveMapsContent.MAP_NAME);
CreatePinTypesComponentObject pinDialog = realMap.clickNext();
pinDialog.typePinTypeTitle(InteractiveMapsContent.PIN_TYPE_NAME, InteractiveMapsContent.PIN_TYPE_INDEX);
createdMap = pinDialog.clickSave();
createdMap.verifyMapOpened();
mapID = createdMap.getEmbedMapID();
createdMap.verifyControlButtonsAreVisible();
ve.openInteractiveMapById(wikiURL, Integer.parseInt(mapID));
DeleteAMapComponentObject deleteMapModal = createdMap.deleteMap();
InteractiveMapsPageObject specialMaps = deleteMapModal.deleteMap();
specialMaps.verifyEmptyState();
}
use of com.wikia.webdriver.common.core.annotations.RelatedIssue in project selenium-tests by Wikia.
the class EditingPreferencesTests method EditPreferences_002_selectCK.
@Test(groups = { "EditPreferences_002" })
@Execute(asUser = User.USER_5, onWikia = URLsContent.VE_ENABLED_WIKI)
@RelatedIssue(issueID = "MAIN-9722", comment = "test failing randomly")
public void EditPreferences_002_selectCK() {
EditPreferencesPage editPrefPage = new EditPreferencesPage(driver).openEditingSection();
editPrefPage.selectPreferredEditor(CK);
PreferencesPageObject prefPage = editPrefPage.clickSaveButton();
List<Notification> confirmNotifications = prefPage.getNotifications(NotificationType.CONFIRM);
Assertion.assertEquals(confirmNotifications.size(), 1, PreferencesPageObject.AssertionMessages.INVALID_NUMBER_OF_CONFIRMING_NOTIFICATIONS);
Assertion.assertTrue(confirmNotifications.stream().findFirst().get().isVisible(), PreferencesPageObject.AssertionMessages.BANNER_NOTIFICATION_NOT_VISIBLE);
String articleName = PageContent.ARTICLE_NAME_PREFIX + DateTime.now().getMillis();
ArticlePageObject aritclePage = new ArticlePageObject().open(articleName);
VisualEditModePageObject ck = aritclePage.navigateToArticleEditPage();
Assertion.assertTrue(ck.isContentLoaded(), "Content is not loaded");
ck.clickPublishButton();
}
use of com.wikia.webdriver.common.core.annotations.RelatedIssue in project selenium-tests by Wikia.
the class FilePageTests method filePage004_delete.
/**
* Verify that a video can be deleted from the File page
*/
@RelatedIssue(issueID = "MAIN-4294")
@Test(groups = { "FilePage", "filePage004_delete", "Media" })
public void filePage004_delete() {
// Go to Special:Videos to add a video
YoutubeVideo video = YoutubeVideoProvider.getLatestVideoForQuery("data");
SpecialVideosPageObject specialVideos = new SpecialVideosPageObject(driver);
specialVideos.loginAs(credentials.userNameStaff, credentials.passwordStaff, wikiURL);
specialVideos.openSpecialVideoPage(wikiURL);
// Add a Youtube video we'll delete
VetAddVideoComponentObject vetAddingVideo = specialVideos.clickAddAVideo();
vetAddingVideo.addVideoByUrl(video.getUrl());
// Verify the video is actually there
specialVideos.verifyVideoAdded(video.getTitle());
// Now delete the video
FilePage filePage = new FilePage().open(video.getFileName());
DeletePageObject deletePage = filePage.deletePage();
deletePage.submitDeletion();
// Go back to the file page and make sure its gone
filePage = filePage.open(video.getFileName());
filePage.verifyEmptyFilePage();
}
use of com.wikia.webdriver.common.core.annotations.RelatedIssue 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.common.core.annotations.RelatedIssue in project selenium-tests by Wikia.
the class BasicActions method filtering.
@Test(groups = { "IntraWikiSearch_005", "Search", "Search2" })
@RelatedIssue(issueID = "MAIN-7142", comment = "Product code defect. No need to test manually")
public void filtering() {
IntraWikiSearchPageObject search = new IntraWikiSearchPageObject(driver);
search.openWikiPage(testedWiki);
search.searchFor(SearchContent.SEARCH_PHRASE_RESULTS);
search.selectPhotosVideos();
search.verifyTitlesNotEmpty();
search.selectPhotosOnly();
search.verifyTitlesNotEmpty();
search.verifyAllResultsImages(SearchContent.RESULTS_PER_PAGE_HIGH);
search.selectVideosOnly();
search.verifyTitlesNotEmpty();
search.verifyAllResultsVideos(SearchContent.RESULTS_PER_PAGE_HIGH);
}
Aggregations