コード例 #1
0
        public void ShouldHaveMandataoryShortNameField(string provisionName, string startdate, string enddate, string starttime, string endtime)
        {
            EarlyYearsProvisionsPage earlyYearPage = AttendanceNavigations.NavigateToEarlyYearsProvisionsFromTaskMenu();

            earlyYearPage.ClickCreate();
            earlyYearPage.EnterProvisionName(provisionName, earlyYearPage.MainPageProvisionName);
            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());
        }
コード例 #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());
        }