Esempio n. 1
0
        public void VerifyMaxLengthOfProvisionNameField()
        {
            EarlyYearsProvisionsPage earlyYearPage = AttendanceNavigations.NavigateToEarlyYearsProvisionsFromTaskMenu();

            earlyYearPage.ClickCreate();
            Assert.IsTrue((earlyYearPage.MainPageProvisionName.GetAttribute("maxlength") == "100") &&
                          (earlyYearPage.MainPageShortName.GetAttribute("maxlength") == "10") && (earlyYearPage.notes.GetAttribute("maxlength") == "2000"));
        }
Esempio n. 2
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());
        }
Esempio n. 3
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());
        }
Esempio n. 4
0
        public void SearchProvisionByShortName(string provisonName, string shortName, string startdate, string endDate, string starttime, string endtime)
        {
            Guid        provisionId = Guid.NewGuid();
            DataPackage provision   = new DataPackage();

            provision.GenerateEarlyYearProvision(provisionId, provisonName, shortName, startdate, starttime, endtime);

            using (new DataSetup(purgeBeforeInsert: false, purgeAfterTest: true, packages: provision))
            {
                EarlyYearsProvisionsPage earlyYearPage = AttendanceNavigations.NavigateToEarlyYearsProvisionsFromTaskMenu();
                earlyYearPage.EnterProvisionName(shortName, earlyYearPage.SearchPanelShortName);
                SearchCriteria.Search();
                SearchResults.WaitForResults();
                Assert.IsTrue(SearchResults.HasResults());
            }
        }