Ejemplo n.º 1
0
        public void SendAnEmailToRandom()
        {
            var RandomEmail = GetRandomEmailAddress.GetRandomEmail();

            new StartPage().Login(new User(LogIn, Password));
            new InboxPage().GoToSentPage();

            var sentPage = new SentPage();

            sentPage.DeleteAllSent();
            sentPage.GoToNewEmailPage();

            var emailPage = new EmailPage();

            emailPage.CreateANewEmail(new Email(EmailAddress, EmailSubject, EmailText));
            emailPage.SaveAsADraft();
            emailPage.GoToDraftPage();

            new DraftPage().OpenEmail();

            emailPage.SendEmail();
            emailPage.GoToSentPage();

            Assert.IsTrue(sentPage.SentEmailExist());
        }
Ejemplo n.º 2
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());
        }
Ejemplo n.º 3
0
        public void SendFolderAfterSendingTest()
        {
            try
            {
                new StartPage().Login(new User(LogIn, Password));
                new InboxPage().GoToSentPage();

                var sentPage = new SentPage();
                sentPage.DeleteAllSent();
                sentPage.GoToNewEmailPage();

                var emailPage = new EmailPage();
                emailPage.CreateANewEmail(new Email(EmailAddress, EmailSubject, EmailText));
                emailPage.SaveAsADraft();
                emailPage.GoToDraftPage();

                new DraftPage().OpenEmail();

                emailPage.SendEmail();
                emailPage.GoToSentPage();

                Assert.IsTrue(sentPage.SentEmailExist());
            }

            catch (Exception ex)
            {
                Logger.TakeScreenshot();
                Logger.log.Error("Exception: " + ex);
            }
        }
Ejemplo n.º 4
0
        public void DragAndDropEmailTest()
        {
            new StartPage().Login(new User(LogIn, Password));
            new InboxPage().GoToSentPage();

            var sentPage = new SentPage();

            sentPage.DeleteAllSent();
            sentPage.GoToNewEmailPage();

            var emailPage = new EmailPage();

            emailPage.CreateANewEmail(new Email(EmailAddress, EmailSubject, EmailText));
            emailPage.SendEmail();
            emailPage.GoToSentPage();
            sentPage.DragAndDropFromSentToDelete();

            Assert.IsFalse(sentPage.SentEmailExist());
        }
Ejemplo n.º 5
0
        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());
        }
 public void ThenTheEmailIsSent()
 {
     emailPage.GoToSentPage();
     sentPage = new SentPage();
     Assert.IsTrue(sentPage.SentEmailExist());
 }