Exemple #1
0
        /// <summary>
        /// Opens a Company in the Implemnetation Page.
        /// </summary>
        /// <param name="p">Company Search params</param>
        /// <param name="position">The position in the results grid. A position of 1 is  the first company in the list.</param>
        public static void OpenCompany(CompanySearchParams p, int position = 1)
        {
            SearchCompany(p);

            // Click the row given the position. By default, this clicks the Company Name link of the first item in the results grid.
            (new CompanySearchPage()).ClickSearchResultField(position, 2);
        }
Exemple #2
0
 public void SetFields(CompanySearchParams p)
 {
     Browser.WebDriver.FindElement(By.Id("GroupNumber"))     .SendKeys(p.GroupNumber);
     Browser.WebDriver.FindElement(By.Id("Name"))            .SendKeys(p.Name);
     Browser.WebDriver.FindElement(By.Id("CompanySetId"))    .SendKeys(p.WebPayCompanyCompanySetId);
     Browser.WebDriver.FindElement(By.Id("CompanySetName"))  .SendKeys(p.WebPayCompanyCompanySetName);
     SetTeamDropdown(p.Team);
 }
Exemple #3
0
        public static List<CompanySearchResultsGridRow> SearchCompany(CompanySearchParams p)
        {
            (new ImplementationBase()).ClickCompanySearchButton();
            (new CompanySearchPage()).SetFields(p);
            (new CompanySearchPage()).ClickSearchButton();

            return (new CompanySearchPage()).SearchResults;
        }
        public void Enrollment_Is_Triggered_For_A_New_Hire()
        {
            // Arrange
            var loginParams = new LoginPageParams()
            {
                CompanyId           = "1",
                Username            = "******",
                Password            = "******"
            };

            var newEmployeePageParams = new NewEmployeePageParams()
            {
                LastName            = "Smith",
                FirstName           = "Sam",
                FederalFilingStatus = "Single",
                StateFilingStatus   = "Single",
                Department          = "Accounting"
            };

            var companySearchParams = new CompanySearchParams()
            {
                Name = "AR MPY Test Company"
            };

            WB.User.Login(loginParams);

            WB.Implementation.ServiceBureau.OpenCompany(companySearchParams);

            WP.Employee.AddNew(newEmployeePageParams);
            WP.Employee.AddBenefitsClass();
            WP.Employee.SetupUserAccount();
            WP.Navigation.SSOToWebBenefits();

            WB.Implementation.Employees.UpdateEligibility();

            // Act
            WB.Implementation.Employees.ImpersonateEmployee();

            // Assert
            // Verify that Enrollment is triggered.
        }