use of com.wikia.webdriver.common.core.annotations.Execute in project selenium-tests by Wikia.
the class MessageWallFeaturesTests method userCanWriteMessageInSourceMode.
@Test(groups = { "MessageWallFeatures_001", "MessageWallFeatures", "MessageWallTests" })
@Execute(asUser = User.USER_MESSAGE_WALL)
public void userCanWriteMessageInSourceMode() {
MessageWall wall = new MessageWall(driver).open(User.USER_MESSAGE_WALL.getUserName());
wall.triggerMessageArea();
String message = PageContent.MESSAGE_WALL_MESSAGE_PREFIX + wall.getTimeStamp();
String title = PageContent.MESSAGE_WALL_TITLE_PREFIX + wall.getTimeStamp();
wall.clickSourceModeButton();
wall.writeSourceMode(message);
wall.setTitle(title);
wall.submit();
wall.verifyMessageText(title, message, User.USER_MESSAGE_WALL.getUserName());
}
use of com.wikia.webdriver.common.core.annotations.Execute in project selenium-tests by Wikia.
the class MessageWallFeaturesTests method userCanWriteMessageInBold.
@Test(groups = { "MessageWallFeatures_002", "MessageWallFeatures", "MessageWallTests" })
@Execute(asUser = User.USER_MESSAGE_WALL)
public void userCanWriteMessageInBold() {
MessageWall wall = new MessageWall(driver).open(User.USER_MESSAGE_WALL.getUserName());
String message = PageContent.MESSAGE_WALL_MESSAGE_PREFIX + wall.getTimeStamp();
String title = PageContent.MESSAGE_WALL_TITLE_PREFIX + wall.getTimeStamp();
wall.setTitle(title);
MiniEditorComponentObject mini = wall.triggerMessageArea();
wall.clickBoldButton();
mini.switchAndWrite(message);
wall.submit();
wall.verifyMessageBoldText(title, message, User.USER_MESSAGE_WALL.getUserName());
}
use of com.wikia.webdriver.common.core.annotations.Execute in project selenium-tests by Wikia.
the class MessageWallFeaturesTests method userCanWriteMessageWithExternalLink.
@Test(groups = { "MessageWallFeatures_006", "MessageWallFeatures", "MessageWallTests" })
@Execute(asUser = User.USER_MESSAGE_WALL)
public void userCanWriteMessageWithExternalLink() {
MessageWall wall = new MessageWall(driver).open(User.USER_MESSAGE_WALL.getUserName());
String title = PageContent.MESSAGE_WALL_TITLE_PREFIX + wall.getTimeStamp();
wall.setTitle(title);
wall.triggerMessageArea();
MessageWallAddLinkComponentObject addLink = wall.clickLinkButton();
addLink.addExternalLink(PageContent.EXTERNAL_LINK, PageContent.TEXT_LINK);
wall.submit();
wall.verifyExternalLink(title, PageContent.EXTERNAL_LINK, PageContent.TEXT_LINK, wikiURL);
}
use of com.wikia.webdriver.common.core.annotations.Execute in project selenium-tests by Wikia.
the class SignupTests method MercurySignupTest_006_japaneseUserSignup.
@Test(groups = "MercurySignupTest_006")
@Execute(onWikia = "ja.ja-test")
public void MercurySignupTest_006_japaneseUserSignup() {
init();
String japanName = "ユーザー" + DateTime.now().getMillis();
String japanPAssword = "ユーザザー" + DateTime.now().getMillis();
signUp(new CreateUser().withName(japanName).withPass(japanPAssword).create()).verifyAvatarAfterSignup();
}
use of com.wikia.webdriver.common.core.annotations.Execute in project selenium-tests by Wikia.
the class VEImageTests method changeImageAlignment.
@Test(groups = { "VEImageTests", "VEMediaSetting" })
@Execute(asUser = User.USER_9)
public void changeImageAlignment() {
int numOfMedia = 3;
List<String> wikiTexts = new ArrayList<String>();
wikiTexts.add("|centre");
wikiTexts.add("|left");
String randomArticleName = PageContent.ARTICLE_NAME_PREFIX + new VisualEditorPageObject().getTimeStamp();
VisualEditorPageObject veCreatePage = new VisualEditorPageObject().openVEOnArticle(wikiURL, randomArticleName);
VisualEditorAddMediaDialog mediaDialog = veCreatePage.searchImage("h");
veCreatePage = mediaDialog.addExistingMedia(numOfMedia);
veCreatePage.verifyMedias(numOfMedia);
veCreatePage.clickPublishButton();
new VisualEditorSaveChangesDialog(this.driver).savePage();
veCreatePage.waitForPageLoad();
ArticlePageObject article = new ArticlePageObject();
article.openVEModeWithMainEditButton();
VisualEditorPageObject ve = new VisualEditorPageObject();
ve.alignMedia(2, Alignment.LEFT);
ve.alignMedia(0, Alignment.CENTER);
ve.verifyEditorSurfacePresent();
ve.verifyVEToolBarPresent();
VisualEditorSaveChangesDialog saveDialog = ve.clickPublishButton();
VisualEditorReviewChangesDialog reviewDialog = saveDialog.clickReviewYourChanges();
reviewDialog.verifyAddedDiffs(wikiTexts);
saveDialog = reviewDialog.clickReturnToSaveFormButton();
saveDialog.savePage();
article.verifyVEPublishComplete();
}
Aggregations