コード例 #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());
        }
コード例 #2
0
        public void PupilPickerSearchPanelShouldContain_Name_Year_Class_And_SearchButton()
        {
            ExceptionalCircumstancePage ecSelectedPupil = AttendanceNavigations.NavigateToExceptionalCircumstancePageFromTaskMenu1();

            ecSelectedPupil.ClickCreate();
            CreateExceptionalCircumstancesPage ecSelectedPupilPage = ecSelectedPupil.ClickSelectedPupilOption();
            AttendanceSearchPanel searchcriteria = ecSelectedPupilPage.ClickAddPupilLink();

            Assert.IsTrue(searchcriteria.pupilNameFilter.Displayed && searchcriteria.classFilter.Displayed && searchcriteria.yeargroupFilter.Displayed && searchcriteria.searchButton.Displayed);
        }
コード例 #3
0
        public void VerifyPupilNameSearchFilter()
        {
            ExceptionalCircumstancePage ecSelectedPupil = AttendanceNavigations.NavigateToExceptionalCircumstancePageFromTaskMenu1();

            ecSelectedPupil.ClickCreate();
            CreateExceptionalCircumstancesPage ecSelectedPupilPage = ecSelectedPupil.ClickSelectedPupilOption();
            AttendanceSearchPanel searchcriteria = ecSelectedPupilPage.ClickAddPupilLink();

            SearchCriteria.SetCriteria("LegalSurname", "a");
            PupilPickerAvailablePupilSection availablePupils = searchcriteria.PupilPickerSearchButton();

            Assert.IsTrue(availablePupils.searchResults.Displayed);
        }
コード例 #4
0
        public void VerifyYearGroupSearchFilter()
        {
            ExceptionalCircumstancePage ecSelectedPupil = AttendanceNavigations.NavigateToExceptionalCircumstancePageFromTaskMenu1();

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

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

            Assert.IsTrue(availablePupils.searchResults.Displayed);
        }
コード例 #5
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);
        }