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 DragAndDropEmailTest() { 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.SendEmail(); emailForm.GoToSentPage(); sentForm.DragAndDropFromSentToDelete(); Assert.IsFalse(sentForm.SentEmailExist()); }