Esempio 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);
        }
Esempio 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);
        }