public void CompareDraftEmailSubjectTest() { 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(EmailSubject, emailPage.GetDraftEmailSubject()); }
public void CompareDraftEmailSubjectTest() { 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(EmailSubject, emailForm.GetDraftEmailSubject()); }