示例#1
0
        public void ShouldHaveMandatoryNoteField()
        {
            AttendanceNavigations.NavigateToEditMarksMenuPage();
            var group = new AttendanceSearchPanel();

            group.Select("Year Group", "Year 1", "Year 2");
            group.EnterDate(SeleniumHelper.GetFirstDayOfWeek(DateTime.Now).ToShortDateString());
            AttendanceDetails    editMarksPage = group.EditMarksSearchButton();
            EditMarksPupilDetail plog          = editMarksPage.ClickPupilLink();

            plog.ClickOnAttendanceNoteButton();
            plog.AttendanceNoteTextSave();
            Assert.IsTrue(plog.attendanceNotevalidationWarning.Displayed);
        }
示例#2
0
        public void CreateAttendaceNoteWithoutPinNote()
        {
            AttendanceNavigations.NavigateToEditMarksMenuPage();
            var group = new AttendanceSearchPanel();

            group.Select("Year Group", "Year 1", "Year 2");
            group.EnterDate(SeleniumHelper.GetFirstDayOfWeek(DateTime.Now).ToShortDateString());
            AttendanceDetails    editMarksPage = group.EditMarksSearchButton();
            EditMarksPupilDetail plog          = editMarksPage.ClickPupilLink();

            plog.ClickOnAttendanceNoteButton();
            plog.EnterTextInAttendanceNoteTextArea("Test Note For Attendance Plog");
            plog.EnterTitle("AttendanceNote");
            AttendanceDetails    editMarksPage1 = plog.AttendanceNoteTextSave();
            EditMarksPupilDetail plog1          = editMarksPage1.ClickPupilLink();

            plog1.ClickViewPupilLogLink();
            Assert.IsTrue(plog.AttendanceNoteOnPupilLogPage.Displayed);
        }