Esempio n. 1
0
        public void ShouldHaveMandataoryProvisionNameField(string shortname, string startdate, string enddate, string starttime, string endtime)
        {
            EarlyYearsProvisionsPage earlyYearPage = AttendanceNavigations.NavigateToEarlyYearsProvisionsFromTaskMenu();

            earlyYearPage.ClickCreate();
            earlyYearPage.EnterShortName(shortname, earlyYearPage.MainPageShortName);
            earlyYearPage.EnterNotes("Write Notes");
            earlyYearPage.EnterDate(startdate, earlyYearPage.startDate);
            earlyYearPage.EnterDate(enddate, earlyYearPage.endDate);
            earlyYearPage.EnterTime(starttime, earlyYearPage.startTime);
            earlyYearPage.EnterTime(endtime, earlyYearPage.endTime);
            Detail.Save();
            Assert.IsTrue(earlyYearPage.IsDisplayedValidationWarning());
        }
Esempio n. 2
0
        public void ShouldCreateEarlyYearProvisions(string provisonName, string shortName, string startdate, string endDate, string starttime, string endtime)
        {
            EarlyYearsProvisionsPage page = AttendanceNavigations.NavigateToEarlyYearsProvisionsFromTaskMenu();

            page.ClickCreate();
            page.EnterProvisionName(provisonName, page.MainPageProvisionName);
            page.EnterShortName(shortName, page.MainPageShortName);
            page.EnterNotes("Write Notes");
            page.EnterDate(startdate, page.startDate);
            page.EnterDate(endDate, page.endDate);
            page.EnterTime(starttime, page.startTime);
            page.EnterTime(endtime, page.endTime);
            Detail.Save();
            Assert.IsTrue(page.HasConfirmedSave());
        }