示例#1
0
        public async Task NextMonthLimit()
        {
            await workerRepository.CreateAsync(shop.Id, new Worker { FullName = "Василий" });

            var page = LoadMainPage().GoToWorkerListPage().OpenCalendar();

            for (int i = 0; i < 12; i++)
            {
                page.GoToNextMonth();
            }

            page.MonthName.WaitText($"{Now.GetFullMonthName()} {Now.Year + 1}");

            page.NextMonth.Disabled.Wait().EqualTo(true);
            page.GoToNextMonth();
            page.MonthName.WaitText($"{Now.GetFullMonthName()} {Now.Year + 1}");
        }
示例#2
0
        public async Task CreateTwoByTwoWorkingCalendar()
        {
            await CreateWorker();

            var page = LoadMainPage().GoToWorkerListPage();

            page.OpenCalendar();
            page.MonthName.WaitText(Now.GetFullMonthName());

            const int startIdx    = 15;
            var       editingView = page.OpenEditor(0, startIdx).GetEditingView();

            editingView.SetTimeRange();
            editingView.SetCalendarMode(CalendarFillingMode.TwoByTwo);
            editingView.ClickSave();

            CheckMonthFor2By2From(page, DateHelper.GetFirstDayOfMonth(Now).AddDays(startIdx));
        }