public void ThenIShouldBeAbleToNavigateToReportHubHomePage()
        {
            var hNavigation = new HomeNavigationPage(driver);

            Assert.IsTrue(hNavigation.AssertPublishedReportText.Displayed);
            CloseBrowser();
        }
        public void ThenISouldBeAbleToNavigateToUnifiedPortalAdminPage()
        {
            var    hNavigation = new HomeNavigationPage(driver);
            string expTitle    = "Hi, test_user_up-ext";

            Assert.AreEqual(expTitle, hNavigation.AssertTitle.Text);
        }
        public void ThenICanSeeReportsLabel()
        {
            var hNavigation = new HomeNavigationPage(driver);

            Assert.IsTrue(hNavigation.ReportsLabel.Displayed);
            CloseBrowser();
        }
        public void ThenIShouldBeAbleToSeeAdminHomeLabel()
        {
            var hNavigation = new HomeNavigationPage(driver);

            Assert.IsTrue(hNavigation.AdminHomeLink.Displayed);
            CloseBrowser();
        }
Ejemplo n.º 5
0
        private void PushRoot(Page page, IRxnPageModel model, bool hasNavBar = false)
        {
            var oldMain = _mainNavigationPage;

            if (_mainNavigationPage != null)
            {
                Pop();
            }

            _mainNavigationPage         = new HomeNavigationPage(page, hasNavBar);
            _mainNavigationPage.Popped += DisposeCurrentPageWhenBackNavigationPressed;
            new DisposableAction(() => _mainNavigationPage.Popped -= DisposeCurrentPageWhenBackNavigationPressed).DisposedBy(this);
            Swap(page, model);

            RxnApp.UIScheduler.Run(() =>
            {
                _setMainPage(page);
                //only dispose of the loginpage once we are loaded
                //top stop the going black

                RxnApp.BackgroundScheduler.Run(() =>
                {
                    if (oldMain != null)
                    {
                        DisposeOfPageResources(oldMain);
                    }
                });
            });
        }
Ejemplo n.º 6
0
        void OnMenuItemSelected(object sender, SelectedItemChangedEventArgs e)
        {
            var item = e.SelectedItem as View.Home.Components.MenuItem;

            if (item != null)
            {
                var nextPageType = item.TargetType;
                if (nextPageType != CurrentDetailPageType)
                {
                    CurrentDetailPageType = nextPageType;

                    var nextPage = _CachedPages.Where(typeAndPage => typeAndPage.Item1 == item.TargetType)
                                   .Select(typeAndPage => typeAndPage.Item2)
                                   .FirstOrDefault() ??
                                   ((Func <Page>)(() =>
                    {
                        var newPage = new HomeNavigationPage((Page)Activator.CreateInstance(item.TargetType))
                        {
                            Title = item.Title
                        };
                        _CachedPages.Add(new Tuple <Type, Page>(newPage.GetType(), newPage));
                        return(newPage);
                    }))();



                    App.Navigation = nextPage.Navigation;

                    Detail = nextPage;
                }

                masterPage.MenuList.SelectedItem = null;
                IsPresented = false;
            }
        }
        public void GivenINavigateToAnySubFolders()
        {
            var         hNavigation    = new HomeNavigationPage(driver);
            Actions     actions        = new Actions(driver);
            IWebElement elementLocator = hNavigation.DoubleClickFolder;

            actions.DoubleClick(elementLocator).Perform();
        }
        public void GivenIShouldBeAbleToNavigateToReportHubHomePageInNewTab()
        {
            var hNavigation = new HomeNavigationPage(driver);
            var windowids   = driver.WindowHandles;

            driver.SwitchTo().Window(windowids[1]);
            string expTitle = "Hi, S5 Alpesh";

            Assert.AreEqual(hNavigation.AssertTitle.Text, expTitle);
        }
Ejemplo n.º 9
0
        private void Setup()
        {
            masterPage.MenuList.ItemSelected += OnMenuItemSelected;


            var detailPage = new HomeNavigationPage(new HomeTabbedPage())
            {
                Title = "Home"
            };

            CurrentDetailPageType = detailPage.GetType();

            App.Navigation = detailPage.Navigation;

            Detail = detailPage;
        }
Ejemplo n.º 10
0
        void OnMenuItemSelected(object sender, SelectedItemChangedEventArgs e)
        {
            var item = e.SelectedItem as Pages.Home.MenuItem;

            if (item != null)
            {
                var nextPage     = (Page)Activator.CreateInstance(item.TargetType);
                var nextPageType = nextPage.GetType();
                if (nextPageType != CurrentDetailPageType)
                {
                    CurrentDetailPageType = nextPageType;
                    nextPage = new HomeNavigationPage(nextPage)
                    {
                        Title = nextPage.Title
                    };
                    App.Navigation = nextPage.Navigation;

                    Detail = nextPage;
                }

                masterPage.MenuList.SelectedItem = null;
                IsPresented = false;
            }
        }
        public void GivenIEnterValidAdminPassword()
        {
            var hNavigation = new HomeNavigationPage(driver);

            hNavigation.EnterPassword.SendKeys("Te$t1ngTeam");
        }
        public void ThenIClickOnAdminHomeLabel()
        {
            var hNavigation = new HomeNavigationPage(driver);

            hNavigation.AdminHomeLink.Click();
        }
        public void GivenIEnterValidAdminEmailAddress()
        {
            var hNavigation = new HomeNavigationPage(driver);

            hNavigation.EnterEmail.SendKeys("*****@*****.**");
        }
        public void ThenIClickOnAccountsTabe()
        {
            var hNavigation = new HomeNavigationPage(driver);

            hNavigation.AccountsTab.Click();
        }
        public void WhenIClickOnReportsLabel()
        {
            var hNavigation = new HomeNavigationPage(driver);

            hNavigation.ReportsLabel.Click();
        }
        public void GivenIClickOnNextButton()
        {
            var hNavigation = new HomeNavigationPage(driver);

            hNavigation.NextButton.Click();
        }
        public void WhenIClickOnYesButton()
        {
            var hNavigation = new HomeNavigationPage(driver);

            hNavigation.ConfirmationButton.Click();
        }
 public void ThenIClickOnAnyAccount()
 {
     var hNavigation = new HomeNavigationPage(driver);
     //hNavigation.ClickPageNumber.Click();
     //hNavigation.SelectAnyAccount.Click();
 }
        public void WhenIClickSignInButton()
        {
            var hNavigation = new HomeNavigationPage(driver);

            hNavigation.SignInButton.Click();
        }
        public void ThenISouldBeAbleToNavigateToReportHubAdminPage()
        {
            var hNavigation = new HomeNavigationPage(driver);

            Assert.IsTrue(hNavigation.AssertTotalSize.Displayed);
        }