Exemplo n.º 1
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());
        }
Exemplo n.º 2
0
        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());
        }