示例#1
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);
        }
示例#2
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);
        }