public void CompareDraftEmailTextTest() { new StartPage().Login(new User(LogIn, Password)); new InboxPage().GoToNewEmailPage(); var emailForm = new EmailPage(); emailForm.CreateANewEmail(new Email(EmailAddress, EmailSubject, EmailText)); emailForm.SaveAsADraft(); emailForm.GoToDraftPage(); new DraftPage().OpenEmail(); Assert.IsTrue(emailForm.GetDraftEmailText().Contains(EmailSubject)); }
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)); }