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