use of com.wikia.webdriver.pageobjectsfactory.componentobject.modalwindows.AddMediaModalComponentObject in project selenium-tests by Wikia.
the class ForcedLoginTests method anonCanLogInViaAuthModalWhenAddingVideo.
@Test(groups = "ForcedLogin_anonCanLogInViaAuthModalWhenAddingVideo")
public void anonCanLogInViaAuthModalWhenAddingVideo() {
WikiBasePageObject base = new WikiBasePageObject();
SpecialVideosPageObject specialPage = base.openSpecialVideoPage(wikiURL);
specialPage.clickAddAVideo();
DetachedSignInPage authModal = new DetachedRegisterPage().navigateToSignIn();
authModal.login(credentials.userName10, credentials.password10);
AddMediaModalComponentObject modal = new AddMediaModalComponentObject(driver);
modal.closeAddVideoModal();
specialPage.verifyUserLoggedIn(credentials.userName10);
}
use of com.wikia.webdriver.pageobjectsfactory.componentobject.modalwindows.AddMediaModalComponentObject in project selenium-tests by Wikia.
the class ForcedLoginTests method anonCanLogInViaAuthModalWhenAddingFile.
@Test(groups = "ForcedLogin_anonCanLogInViaAuthModalWhenAddingFile")
public void anonCanLogInViaAuthModalWhenAddingFile() {
WikiBasePageObject base = new WikiBasePageObject();
SpecialNewFilesPage specialPage = base.openSpecialNewFiles(wikiURL);
specialPage.verifyPageHeader(specialPage.getTitle());
specialPage.addPhoto();
DetachedSignInPage authModal = new DetachedRegisterPage().navigateToSignIn();
authModal.login(credentials.userName10, credentials.password10);
AddMediaModalComponentObject modal = new AddMediaModalComponentObject(driver);
modal.closeAddPhotoModal();
specialPage.verifyUserLoggedIn(credentials.userName10);
}
Aggregations