Esempio n. 1
0
        public void ViewWorkflowFromIssue()
        {
            IssuePage workflow = new IssuePage(driver);

            workflow.ClickWorkflowLink();
            bool actualResult = workflow.WorkFlowIsOpened();

            Assert.IsTrue(actualResult);
        }
Esempio n. 2
0
        public void DeleteCommentInIssue()
        {
            IssuePage deleteComment = new IssuePage(driver);

            string expectedText = "There are no comments yet on this issue.";

            deleteComment.DeleteCommentClick();
            deleteComment.ConfirmDeleteClick();
            string actualText = deleteComment.GetStatusAfterDelete();

            Assert.AreEqual(expectedText, actualText);
        }
Esempio n. 3
0
        public void CreateCommentInIssue()
        {
            IssuePage comment = new IssuePage(driver);
            string    message = "TestComment";

            comment.ClickCommentButton();
            comment.FillCommentField(message);
            comment.SendComment();
            string actualResult = comment.GetTextOfComment();

            Assert.AreEqual(message, actualResult);
        }
Esempio n. 4
0
        public void StopAndStartWatchersByLink()
        {
            IssuePage watchers = new IssuePage(driver);

            //Start watch
            watchers.WatchersClick();
            string actualQuantity = watchers.GetQuantityWatchers();

            Assert.AreEqual("1", actualQuantity);
            //Stop watch
            watchers.WatchersClick();
            actualQuantity = watchers.GetQuantityWatchers();
            Assert.AreEqual("0", actualQuantity);
        }
Esempio n. 5
0
        public void EditCommentInIssue()
        {
            IssuePage editComment = new IssuePage(driver);

            string editMessage             = "EditTestComment";
            string expectedStatusOfComment = "edited";

            editComment.EditCommentButtonClick();
            editComment.FillEditCommentField(editMessage);
            editComment.SaveEditComment();
            string actualMessage         = editComment.GetTextOfComment();
            string actualStatusOfComment = editComment.GetStatusEditComment();

            Assert.AreEqual(editMessage, actualMessage);
            Assert.AreEqual(expectedStatusOfComment, actualStatusOfComment);
        }