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