@Test(groups = {"ArticleActionsAdmin_002"}) @UseUnstablePageLoadStrategy @Execute(asUser = User.STAFF) public void moveArticle() { new ArticleContent().push(PageContent.ARTICLE_TEXT); ArticlePageObject article = new ArticlePageObject().open(); String articleNewName = TestContext.getCurrentMethodName() + article.getTimeStamp(); RenamePageObject renamePage = article.renameUsingDropdown(); renamePage.rename(articleNewName, false); Assertion.assertTrue( article.getBannerNotifications().isNotificationMessageVisible(), "Banner notification message is not visible"); article.verifyArticleTitle(articleNewName); }
@Test(groups = {"ArticleActionsAdmin_001"}) @UseUnstablePageLoadStrategy @RelatedIssue(issueID = "WW-568") @Execute(asUser = User.STAFF) public void deleteUndeleteArticle() { String articleTitle = "DeleteUndeleArticle"; new ArticleContent().push(PageContent.ARTICLE_TEXT, articleTitle); ArticlePageObject article = new ArticlePageObject().open(articleTitle); DeletePageObject deletePage = article.deleteUsingDropdown(); deletePage.submitDeletion(); SpecialRestorePageObject restore = article.getBannerNotifications().clickUndeleteLinkInBannerNotification(); restore.verifyRestoredArticleName(articleTitle); restore.giveReason(article.getTimeStamp()); restore.restorePage(); Assertion.assertTrue( article.getBannerNotifications().isNotificationMessageVisible(), "Banner notification message is not visible"); article.verifyArticleTitle(articleTitle); }