Ejemplo n.º 1
0
        public void ShouldHaveMandatorySelectedPupilDateField()
        {
            ExceptionalCircumstancePage ecSelectedPupil = AttendanceNavigations.NavigateToExceptionalCircumstancePageFromTaskMenu1();

            ecSelectedPupil.ClickCreate();
            CreateExceptionalCircumstancesPage ecSelectedPupilPage = ecSelectedPupil.ClickSelectedPupilOption();

            ecSelectedPupilPage.EnterDescription("Test Exceptional Circumstances");
            ecSelectedPupilPage.mainPageStartDate.Clear();
            ecSelectedPupilPage.mainPageEndDate.Clear();

            AttendanceSearchPanel searchCriteria = ecSelectedPupilPage.ClickAddPupilLink();
            var checkbox = SeleniumHelper.Get(AttendanceElements.AddPupilPopUpElements.PupilPickerSearchPanel);

            checkbox.Click(SeSugar.Automation.SimsBy.AutomationId("section_menu_Year Group"));
            checkbox.FindCheckBoxAndClick("Year Group", new List <string> {
                "Year 1", "Year 3"
            });
            PupilPickerAvailablePupilSection AvailablePupils = searchCriteria.PupilPickerSearchButton();

            AvailablePupils.GetAvailablePupils();
            PupilPickerSelectedPupilSection    selectedPupil        = AvailablePupils.AddSelectedPupil();
            CreateExceptionalCircumstancesPage ecSelectedPupilPage1 = selectedPupil.ClickExceptionalCircumstances_PupilPickerOkButton();

            ecSelectedPupilPage1.Save();
            Assert.IsTrue(ecSelectedPupilPage1.IsDisplayedValidationWarning());
        }
Ejemplo n.º 2
0
        public void ShouldAddSelectedPupilsInGrid()
        {
            ExceptionalCircumstancePage ecSelectedPupil = AttendanceNavigations.NavigateToExceptionalCircumstancePageFromTaskMenu1();

            ecSelectedPupil.ClickCreate();
            CreateExceptionalCircumstancesPage ecSelectedPupilPage = ecSelectedPupil.ClickSelectedPupilOption();
            AttendanceSearchPanel searchCriteria = ecSelectedPupilPage.ClickAddPupilLink();
            var checkbox = SeleniumHelper.Get(AttendanceElements.AddPupilPopUpElements.PupilPickerSearchPanel);

            checkbox.Click(SeSugar.Automation.SimsBy.AutomationId("section_menu_Year Group"));
            checkbox.FindCheckBoxAndClick("Year Group", new List <string> {
                "Year 1", "Year 3"
            });
            PupilPickerAvailablePupilSection AvailablePupils = searchCriteria.PupilPickerSearchButton();

            AvailablePupils.GetAvailablePupils();
            PupilPickerSelectedPupilSection    selectedPupil = AvailablePupils.AddSelectedPupil();
            CreateExceptionalCircumstancesPage app1          = selectedPupil.ClickExceptionalCircumstances_PupilPickerOkButton();

            Assert.IsTrue(app1.Trashicon.Displayed);
        }