예제 #1
0
        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());
        }
예제 #2
0
        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());
        }
예제 #3
0
        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));
        }
예제 #4
0
        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());
        }