Пример #1
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());
        }
Пример #2
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));
        }