public void CreateDraftEmailTest() { var startForm = new StartPage(); startForm.Login(LogIn, Password); var inboxForm = new InboxPage(); inboxForm.GoToNewEmailPage(); var emailForm = new EmailPage(); emailForm.CreateADraft(EmailAddress, EmailSubject, EmailText); emailForm.GoToDraftPage(); var draftForm = new DraftPage(); Assert.AreEqual(EmailAddress, draftForm.GetEmailAddress()); }
public void CompareDraftEmailTextTest() { var startForm = new StartPage(); startForm.Login(LogIn, Password); var inboxForm = new InboxPage(); inboxForm.GoToNewEmailPage(); var emailForm = new EmailPage(); emailForm.CreateADraft(EmailAddress, EmailSubject, EmailText); emailForm.GoToDraftPage(); var draftForm = new DraftPage(); draftForm.OpenEmail(); Assert.IsTrue(emailForm.GetDraftEmailText().Contains(EmailSubject)); }