Exemplo n.º 1
0
 public void tc_63916_As_an_Admin_preview_an_Email_from_Edit_workflow_20_2()
 {
     CommonSection.Administer.System.EmailManagement.SystemEvents();
     _test.Log(Status.Info, "As an Admin navigate to System >> Email Management >> System Event");
     Assert.IsTrue(SystemEventPage.isResultGriddisplay());
     _test.Log(Status.Pass, "Verify Email table is display");
     SystemEventPage.EmailResultTable.Actions.ClickEdit("FirstResult");
     Assert.IsTrue(Driver.checkTitle("Edit Email"));
     _test.Log(Status.Pass, "Verify Edit Email page display");
     Assert.IsTrue(EditEmailPage.isPreviewButtondisplay());
     EditEmailPage.ClickPreviewbutton();
     Assert.IsTrue(EditEmailPage.isPreviewEmailModalOpen());
     Assert.IsTrue(EditEmailPage.PreviewEmailModal.isEmailTiteldisplay());
     EditEmailPage.PreviewEmailModal.ClickClose();
     Assert.IsTrue(EditEmailPage.isPreviewButtondisplay());
     _test.Log(Status.Pass, "Verify Preview Email Modal is Closed");
 }
Exemplo n.º 2
0
 public void tc_63918_As_an_Admin_attach_files_to_an_email_from_Edit_workflow_20_2()
 {
     CommonSection.Administer.System.EmailManagement.SystemEvents();
     _test.Log(Status.Info, "As an Admin navigate to System >> Email Management >> System Event");
     Assert.IsTrue(SystemEventPage.isResultGriddisplay());
     _test.Log(Status.Pass, "Verify Email table is display");
     SystemEventPage.EmailResultTable.Actions.ClickEdit("FirstResult");
     Assert.IsTrue(Driver.checkTitle("Edit Email"));
     _test.Log(Status.Pass, "Verify Edit Email page display");
     EditEmailPage.BrowseandUploadfile("Data\\mv_mvet_a03_it_enus.au");
     _test.Log(Status.Info, "Upload an invalid extension file");
     Assert.IsTrue(EditEmailPage.isValidationmessagedidisplay());
     _test.Log(Status.Pass, "Verify Invalid extension file validation message display");
     EditEmailPage.BrowseandUploadfile("Data\\test_image.jpg");
     _test.Log(Status.Info, "Upload a valide extension file");
     Assert.IsTrue(EditEmailPage.isfileisuploaded());
     _test.Log(Status.Pass, "Verify file is uploaded");
     EditEmailPage.DeleteduploaededFile();
     EditEmailPage.ClickSave();
 }
Exemplo n.º 3
0
        public void tc_63878_As_a_Siteadmin_I_want_to_add_field_codes_to_email_subject_and_message_when_the_cursor_is_not_placed_in_the_existing_textbox()
        {
            CommonSection.Administer.System.EmailManagement.SystemEvents();
            _test.Log(Status.Info, "As an Admin navigate to System >> Email Management >> System Event");
            Assert.IsTrue(SystemEventPage.isResultGriddisplay());
            _test.Log(Status.Pass, "Verify Email table is display");
            SystemEventPage.EmailResultTable.Actions.ClickEdit("FirstResult");
            Assert.IsTrue(Driver.checkTitle("Edit Email"));
            _test.Log(Status.Pass, "Verify Edit Email page display");
            string Actualsubject = EditEmailPage.getSubjectText();

            EditEmailPage.Subject.CLickSelectFieldCode();
            Assert.IsTrue(EditEmailPage.Subject.isSelectFieldCodeModalOpen());
            _test.Log(Status.Pass, "Verify Select Field Code modal opened");
            string SelectedfieldCode = EditEmailPage.Subject.SelectFieldCodeModal.getFirstfieldcodetext();

            EditEmailPage.Subject.SelectFieldCodeModal.SelectandSaveSubjectFieldCode();
            Assert.IsFalse(EditEmailPage.Subject.isSelectFieldCodeModalOpen());
            Assert.IsTrue(EditEmailPage.isSubjectisUpdatedwithfieldCodeattheend(SelectedfieldCode));
            EditEmailPage.EmailBodyRichText.ClickSelectFieldCode();
            Assert.IsTrue(EditEmailPage.EmailBodyRichText.isSelectFieldCodeModalOpen());
            _test.Log(Status.Pass, "Verify Select Field Code modal opened");
            string SelectedfieldCodeEmailbody = EditEmailPage.EmailBodyRichText.SelectFieldCodeModal.getFirstfieldcodetext();

            EditEmailPage.EmailBodyRichText.SelectFieldCodeModal.SelectandSaveSubjectFieldCode();
            Assert.IsFalse(EditEmailPage.EmailBodyRichText.isSelectFieldCodeModalOpen());
            Assert.IsTrue(EditEmailPage.isEmailBodyisUpdatedwithfieldCodeattheEnd(SelectedfieldCodeEmailbody));
            EditEmailPage.ClickSave();
            EditEmailPage.ClickSystemeventBreadcromb();
            SystemEventPage.EmailResultTable.Actions.ClickEdit("FirstResult");
            Assert.IsTrue(Driver.checkTitle("Edit Email"));
            _test.Log(Status.Pass, "Verify Edit Email page display");
            Assert.IsTrue(EditEmailPage.isSubjectisUpdatedwithfieldCodeattheend(SelectedfieldCode));
            Assert.IsTrue(EditEmailPage.isEmailBodyisUpdatedwithfieldCodeattheEnd(SelectedfieldCodeEmailbody));
            TC63879 = true;
        }