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); }
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); }