public void Check_ActivityInstancesAreUnselectedByDefault()
        {
            _driverManager.NavigateTo(PageAlias.Coordinator_ActivityCode);
            var activityCodePage = GatekeeperFactory.CreatePageManager <CoordinatorActivityCodePage>(_driverManager.Driver);

            activityCodePage.AuthenticateActivityCode("7814");


            var activityInstancesPage = GatekeeperFactory.CreatePageManager <CoordinatorActivityInstancePage>(_driverManager.Driver);

            var isExists = activityInstancesPage.ActivityInstances.Exists(x => x.Radio == true);
            var i        = activityInstancesPage.ActivityInstances.Find(x => x.Name == "");

            Assert.False(isExists, "all the activity instances should be unselected by default but actully not");

            activityInstancesPage.StartWithoutInstancesSelected();
            Assert.True(_driverManager.IsCurrentPage(PageAlias.Coordinator_ActivityCode));
        }
Пример #2
0
        public void ActivityCode_Auth_Success()
        {
            var activityCodePage = GatekeeperFactory.CreatePageManager <CoordinatorActivityCodePage>(_driverManager.Driver);

            activityCodePage.AuthenticateActivityCode("7814");

            Assert.True(_driverManager.IsCurrentPage(PageAlias.Coordinator_ActivityInstances));
            var dv     = DataVisitor.Create <ICommonDataVisitor>();
            var church = dv.FetchChurchInfomation(15);

            var activityInstancePage = GatekeeperFactory.CreatePageManager <CoordinatorActivityInstancePage>(_driverManager.Driver);

            Assert.Equal(church.ChurchName, activityInstancePage.Header.ChurchName);
            Assert.Equal("Activity - CC1", activityInstancePage.Header.ActivityName);
        }
Пример #3
0
            public void MovePage_RosterInfo_Check()
            {
                _driverManager.NavigateTo(PageAlias.Coordinator_ActivityInstances);

                var activityInstancesPage = GatekeeperFactory.CreatePageManager <CoordinatorActivityInstancePage>(_driverManager.Driver);

                activityInstancesPage.StartWithInstanceSelected(0);

                Assert.True(_driverManager.IsCurrentPage(PageAlias.Coordinator_MovePage));

                var moveHomePage = GatekeeperFactory.CreatePageManager <MoveHomePage>(_driverManager.Driver);

                var roster1 = moveHomePage.RosterPanel.Rosters[0];

                Assert.Equal(roster1.Name, "Roster - CC1");
                Assert.Equal(roster1.Time, "12:00 AM");

                roster1.Select();
                var rosterDetail = moveHomePage.RosterDetails;

                Assert.Equal("Roster - CC1 Roster Grouping 12:00 AM", rosterDetail.Title);
            }