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)); }
public void DraftFolderAfterSendingTest() { var startForm = new StartPage(); startForm.Login(LogIn, Password); var inboxForm = new InboxPage(); inboxForm.GoToDraftPage(); var draftForm = new DraftPage(); draftForm.DeleteAllDraft(); draftForm.GoToNewEmailPage(); var emailForm = new EmailPage(); emailForm.CreateADraft(EmailAddress, EmailSubject, EmailText); emailForm.GoToDraftPage(); draftForm.OpenEmail(); emailForm.SendEmail(); emailForm.GoToDraftPage(); Assert.IsFalse(draftForm.DraftEmailExist()); }