public void SendFolderAfterSendingTest() { var startForm = new StartPage(); startForm.Login(LogIn, Password); var inboxForm = new InboxPage(); inboxForm.GoToSentPage(); var sentForm = new SentPage(); sentForm.DeleteAllSent(); sentForm.GoToNewEmailPage(); var emailForm = new EmailPage(); emailForm.CreateANewEmail(EmailAddress, EmailSubject, EmailText); emailForm.SaveAsADraft(); emailForm.GoToDraftPage(); var draftForm = new DraftPage(); draftForm.OpenEmail(); emailForm.SendEmail(); emailForm.GoToSentPage(); Assert.IsTrue(sentForm.SentEmailExist()); }
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() { new StartPage().Login(new User(LogIn, Password)); new InboxPage().GoToDraftPage(); var draftPage = new DraftPage(); draftPage.DeleteAllDraft(); draftPage.GoToNewEmailPage(); var emailPage = new EmailPage(); emailPage.CreateANewEmail(new Email(EmailAddress, EmailSubject, EmailText)); emailPage.SaveAsADraft(); emailPage.GoToDraftPage(); draftPage.OpenEmail(); emailPage.SendEmail(); emailPage.GoToDraftPage(); Assert.IsFalse(draftPage.DraftEmailExist()); }