Ejemplo n.º 1
0
        /// <summary>
        /// Navigates to the sales panel and signs in
        /// </summary>
        /// <param name="email"></param>
        public void Sign_In_SalesPanel(string email)
        {
            _driverCover.NavigateToUrl(_driverCover.BaseAdminUrl + "admin/orders");

            RegisterObj regForm = new RegisterObj(_driver);
            regForm.SignIn(email);
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Goes to the sales panel and sign up a new user. Needs previous login in backoffice
        /// </summary>
        /// <param name="email"></param>
        /// <returns></returns>
        public string Sign_Up_SalesPanel(string email)
        {
            _driverCover.NavigateToUrl(_driverCover.BaseAdminUrl + "admin/orders");

            RegisterObj regForm = new RegisterObj(_driver);
            return regForm.SignUp(email);
        }
Ejemplo n.º 3
0
        public void IfUserSignedInSalesPanel()
        {
            _driverCover.NavigateToUrl(_driverCover.BaseAdminUrl + "admin/orders");

            RegisterObj register = new RegisterObj(_driver);
            bool signedIn = register.IsSignedIn();

            Assert.IsTrue(signedIn, "Sorry but no user is signed in the sales panel. Please check it ");
        }