public void COLLECT_Account_Login_Actions_MainBody_03_WhenUserClickOnSignupLinkThenUserShouldBeNavigatedToSignupPage()
        {
            AccountLoginPage AccountLoginPage = new AccountLoginPage(Driver);
            var signupPage = AccountLoginPage
                             .ClickOnSignupLink();

            Verify.IsTrue(signupPage.AmIOnAccountSignupPage, "I am not correctly on the sign up page.");
        }
        public void COLLECT_Account_Login_Actions_MainBody_01_WhenBothUserNameAndPasswordFieldsAreFilledInThenLoginSucceeds()
        {
            AccountLoginPage accountLoginPage = new AccountLoginPage(Driver);
            var createFormPage = accountLoginPage
                                 .SignInFully("*****@*****.**", "#Y12ogesh$");        //Later these hard coded values will be stored into database

            Verify.IsTrue(createFormPage.AmIOnCreateFormPage, "I am not correctly on the create form page.");
        }
        public void COLLECT_Account_Login_Actions_MainBody_02_WhenUserClickOnForgotPasswordLinkThenUserShouldBeNavigatedToForgotPasswordPage()
        {
            AccountLoginPage accountLoginPage = new AccountLoginPage(Driver);
            var forgotPasswordPage            = accountLoginPage
                                                .ClickOnForgotPasswordLink();

            Verify.IsTrue(forgotPasswordPage.AmIOnforgotPasswordPage, "I am not correctly on the forgot password page.");
        }
        public void COLLECT_Account_Login_Objects_MainBody_RightPane_Existence_10_ThenDoNotHaveAnAccountTextExists()
        {
            AccountLoginPage accountLoginPage = new AccountLoginPage(Driver);

            accountLoginPage
            .Open();

            Verify.IsTrue(accountLoginPage.DoNotHaveAnAccountTextExists, "Do not have an account doesn't exist on login page.");
        }
        public void COLLECT_Account_Login_Objects_MainBody_RightPane_Existence_02_ThenWelcomeBackTextExists()
        {
            AccountLoginPage accountLoginPage = new AccountLoginPage(Driver);

            accountLoginPage
            .Open();

            Verify.IsTrue(accountLoginPage.WelcomeBackTextExists, "Welcome Back doesn't exist on login page.");
        }
        public void COLLECT_Account_Login_Objects_MainBody_RightPane_Existence_08_ThenShowButtonExists()
        {
            AccountLoginPage accountLoginPage = new AccountLoginPage(Driver);

            accountLoginPage
            .Open();

            Verify.IsTrue(accountLoginPage.ShowPasswordButtonExists, "Show password button doesn't exist on login page.");
        }
        public void COLLECT_Account_Login_Objects_MainBody_RightPane_Existence_07_ThenPasswordTextBoxExists()
        {
            AccountLoginPage accountLoginPage = new AccountLoginPage(Driver);

            accountLoginPage
            .Open();

            Verify.IsTrue(accountLoginPage.PasswordTextExists, "Password text box doesn't exist on login page.");
        }
        public void COLLECT_Account_Login_Objects_MainBody_RightPane_Existence_06_ThenPasswordTextBoxLabelExists()
        {
            AccountLoginPage accountLoginPage = new AccountLoginPage(Driver);

            accountLoginPage
            .Open();

            Verify.IsTrue(accountLoginPage.EnterYourPasswordLabelExists, "Enter your password label doesn't exist on login page.");
        }
        public void COLLECT_Account_Login_Objects_MainBody_RightPane_Existence_05_ThenUserNameTextBoxExists()
        {
            AccountLoginPage accountLoginPage = new AccountLoginPage(Driver);

            accountLoginPage
            .Open();

            Verify.IsTrue(accountLoginPage.EmailTextExists, "Email text box doesn't exist on login page.");
        }
        public void COLLECT_Account_Login_Objects_MainBody_RightPane_Existence_09_ThenLoginButtonExists()
        {
            AccountLoginPage accountLoginPage = new AccountLoginPage(Driver);

            accountLoginPage
            .Open();

            Verify.IsTrue(accountLoginPage.LoginButtonExists, "Login button doesn't exist on login page.");
        }
        public void COLLECT_Account_Login_Objects_MainBody_RightPane_Existence_11_ThenSignupLinkExists()
        {
            AccountLoginPage accountLoginPage = new AccountLoginPage(Driver);

            accountLoginPage
            .Open();

            Verify.IsTrue(accountLoginPage.SignUpLinkExists, "Signup link doesn't exist on login Page");
        }
        public void COLLECT_Account_Login_Objects_MainBody_LeftPane_Existence_01_ThenLeftBlockWrapperExists()
        {
            AccountLoginPage accountLoginPage = new AccountLoginPage(Driver);

            accountLoginPage
            .Open();

            Verify.IsTrue(accountLoginPage.LeftBlockWrapperExists, "Left block wrapper exists on login Page");
        }
        public void COLLECT_Account_Login_Objects_MainBody_RightPane_Existence_04_ThenUserNameTextBoxLabelExists()
        {
            AccountLoginPage accountLoginPage = new AccountLoginPage(Driver);

            accountLoginPage
            .Open();

            Verify.IsTrue(accountLoginPage.EnterYourEmailLabelExists, "Enter your email label doesn't exist on login Page.");
        }
        public void COLLECT_Account_Login_Objects_Url_01_ThenCollectURLForPageIsCorrect()
        {
            AccountLoginPage accountLoginPage = new AccountLoginPage(Driver);

            accountLoginPage
            .Open();

            Verify.IsTrue(accountLoginPage.AmIOnAccountLoginPage, "I am not correctly on the Account Login Page");
        }
        public void COLLECT_Account_Login_Objects_MainBody_RightPane_Existence_01_ThenCollectLogoExists()
        {
            AccountLoginPage accountLoginPage = new AccountLoginPage(Driver);

            accountLoginPage
            .Open();

            Verify.IsTrue(accountLoginPage.CollectLogoExists, "Collect logo doesn't exist on login page.");
        }
        public void COLLECT_Account_Login_Objects_MainBody_RightPane_Images_SrcAndAltTextVerification_01_ThenCollectLogoSrcIsCorrect()
        {
            AccountLoginPage accountLoginPage = new AccountLoginPage(Driver);

            accountLoginPage
            .Open();

            Verify.EqualOrMatch(accountLoginPage.CollectLogoSrcIsCorrect, "https://collect.socialcops.com/assets/img/collect_logo_2.svg",
                                "The COLLECT Logo in the Main Menu of the Login Page does not contain the correct SRC information.");
        }
        public void COLLECT_Account_SignUp_Objects_SideBar_Existence_01_ThenChatIconExists()
        {
            AccountLoginPage accountLoginPage = new AccountLoginPage(Driver);

            accountLoginPage
            .Open()
            .WaitToRenderAnElement();

            Verify.IsTrue(accountLoginPage.ChatIconExists, "Chat Icon is not present on the page");
        }
        public void COLLECT_Account_Login_Objects_MainBody_RightPane_TextVerification_04_ThenDoNotHaveAnAccountTextTextIsCorrect()
        {
            AccountLoginPage accountLoginPage = new AccountLoginPage(Driver);

            accountLoginPage
            .Open();

            Verify.VerifyFieldUsingConst(accountLoginPage.DonNotHaveAnAccountTextIsCorrect, "Don't have an account? ",
                                         "Don't have an account? text actual value did not match with the expected value.");
        }
        public void COLLECT_Account_Login_Objects_MainBody_RightPane_TextVerification_03_ThenPasswordTextBoxLabelTextIsCorrect()
        {
            AccountLoginPage accountLoginPage = new AccountLoginPage(Driver);

            accountLoginPage
            .Open();

            Verify.VerifyFieldUsingConst(accountLoginPage.EnterYourPasswordLabelIsCorrect, "Enter your password",
                                         "Enter your password text actual value did not match with the expected value.");
        }
        public void COLLECT_Account_Login_Objects_MainBody_RightPane_TextVerification_01_ThenWelcomeBackTextTextIsCorrect()
        {
            AccountLoginPage accountLoginPage = new AccountLoginPage(Driver);

            accountLoginPage
            .Open();

            Verify.VerifyFieldUsingConst(accountLoginPage.WelcomeBackTextIsCorrect, "Welcome back!",
                                         "Welcome back text actual value did not match with the expected value.");
        }
        public void COLLECT_Account_Login_Objects_MainBody_RightPane_Images_SrcAndAltTextVerification_02_ThenCollectLogoAltTextIsCorrect()
        {
            AccountLoginPage accountLoginPage = new AccountLoginPage(Driver);

            accountLoginPage
            .Open();

            Verify.EqualOrMatch(accountLoginPage.CollectLogoAltTextIsCorrect, ".",
                                "The COLLECT Logo in the Main Menu of the Login Page does not contain the correct Alt text information.");
        }
        public void COLLECT_Account_Login_Actions_MainBody_EmptyField_01_WhenUserNameFieldIsEmptyThenLoginFails()
        {
            _user.Email    = "";
            _user.Password = "******";
            AccountLoginPage accountLoginPage = new AccountLoginPage(Driver);

            accountLoginPage
            .SignInFully(_user.Email, _user.Password);

            Verify.IsTrue(accountLoginPage.AmIOnAccountLoginPage, "I am not correctly on the Login Page");
        }
        public void COLLECT_Account_Login_Actions_MainBody_InvalidField_02_WhenPasswordFieldIsInvalidThenLoginFails()
        {
            _user.Email    = "*****@*****.**";
            _user.Password = "******";
            AccountLoginPage accountLoginPage = new AccountLoginPage(Driver);

            accountLoginPage
            .SignInFully(_user.Email, _user.Password);

            Verify.IsTrue(accountLoginPage.AmIOnAccountLoginPage, "I am not correctly on the Login Page");
        }
Beispiel #24
0
        public App()
        {
            InitializeComponent();

            ServiceManager = new ServiceManager();

            // If already logged in, skip and go to the next page
            if (ServiceManager.AccountService.IsLoggedIn())
            {
                MainPage = new AccountLoadingPage();
                return;
            }

            MainPage = new AccountLoginPage();
        }