Ejemplo n.º 1
0
        public void CreateMailSaveDraftAndCheckDraftContent()
        {
            string subjectContent = GenerateUniqSubjectContent();
            string bodyContent    = GenerateUniqBodyContent();

            var message = new NewMessagePage(driver);

            message.CreateNewMail(RecipientContent, subjectContent, bodyContent);
            message.CloseNewMessageWindowToSaveAsDraft();

            new DraftsPage(driver).OpenSavedDraft(subjectContent);
            new DraftMessagePage(driver).VerifySavedDraftContent(RecipientContent, subjectContent, bodyContent);
        }
Ejemplo n.º 2
0
        public void CreateMailSaveDraftAndSend()
        {
            string subjectContent = GenerateUniqSubjectContent();
            string bodyContent    = GenerateUniqBodyContent();
            var    message        = new NewMessagePage(driver);

            message.CreateNewMail(RecipientContent, subjectContent, bodyContent);
            message.CloseNewMessageWindowToSaveAsDraft();

            var draftsFolder = new DraftsPage(driver);

            draftsFolder.OpenSavedDraft(subjectContent);
            new DraftMessagePage(driver).ClickSendButton();

            draftsFolder.VerifySentDraftAbsent(subjectContent);
            var sentFolder = new SentPage(driver);

            sentFolder.VerifySentMailPresent(subjectContent);
        }