public void AE_Import_RUG_Rates() { Browser.Open(); LandingPage.NavigateToSchedulePage(); //Step 1 "Precondition: // RUG csv file" //Step 2 Sign in as Caribou. LoginPage.SignIn(); //Step 3 Admin Tile> RUG Rates from left side menu. SidebarMenu.NavigateToRugRates(); //Step 4 Click Browse. //Step 5 "Locate csv file to be uploaded. // Click on file and select Open." //Step 6 Click IMPORT. //Step 7 Repeat Steps 4 - 6 for all years csv files to be IMPORTED. //Step 8 Select Caribou CLC Suite from breadcrumb in right upper corner. }
public void AJ_Users_Roles_Assign_Permissions_Sections_to_Role() { Browser.Open(); //Step 1 Log in as Facility Administrator. LoginPage.SignIn(); //Step 2 Select Admin Tile > Users & Roles from left side menu. LandingPage.NavigateToAdminPage(); SidebarMenu.NavigateToUsersRoles(); //Step 3 Select EDIT button on Role for Permissions / Sections to be assigned //Step 4 "*Based on users Role* // Use attached document to select Permissions to be assigned by checking the checkboxes associated to the appropriate permissions. // Description in hover to each Permission." //Step 5 "*Based on users Role* // Use attached document to select Sections to be assigned by selecting SELECT SECTION ITEM PERMISSOINS and then selecting appropriate sections and questions from options on right." //Step 6 Click SAVE. //Step 7 Select View from Permissions column drop down arrow in Roles display and verify the Permissions given when creating Role match Permissions displayed. }
public void AK_Users_Roles_Add_Discipline_Edit_Discipline_Delete_Discpline() { Browser.Open(); //Step 1 Log in as Facility Administrator. LoginPage.SignIn(); //Step 2 Select Admin Tile > Users & Roles from left side menu. LandingPage.NavigateToAdminPage(); SidebarMenu.NavigateToUsersRoles(); //Step 3 "Disciplines UsersRolesPage.VerifyDefaultFacilityDisciplines(); // Verify 9 Default Facility Disciplines are displayed. // Nursing Services // Physician Services // Rehabilitation Services // Therapy Services // Dietary Services // Social Services // Administrative Services // Chaplain Services // Pharmacy Services" //Step 4 Select + ADD DISCIPLINE. Driver.ClickOn(UsersRolesPage.addDisciplineButton); //Step 5 "Enter a Discipline Name to be added in Discipline Name box. (Test Discipline) Driver.InsertText(UsersRolesPage.disciplineNameTextfield, "Test Discipline"); // Enter a Description for Discpline in Description box. (Test Description) Driver.InsertText(UsersRolesPage.descriptionTextfield, "Test Description"); // Click SAVE." Driver.ClickOn(UsersRolesPage.facilityDisciplineSaveBtn); Driver.WaitFor(2); //Step 6 Select Edit button next to Test Discpline created. Driver.ClickOn(By.XPath("(//td[@class='ng-binding'][text()='Test Discipline']//parent::tr/td/button)[last()]")); //Step 7 "Edit Name and Description boxes. Driver.InsertText(UsersRolesPage.disciplineNameTextfield, "Test Discipline Edit"); // Click SAVE." Driver.ClickOn(UsersRolesPage.facilityDisciplineSaveBtn); //Step 8 Select Edit button next to Edit Test Discipline. Driver.ClickOn(By.XPath("(//td[@class='ng-binding'][text()='Test Discipline Edit']//parent::tr/td/button)[last()]")); //Step 9 Click DELETE button. Driver.ClickOn(UsersRolesPage.facilityDisciplineDeleteBtn); //Step 10 Click YES. Driver.ClickOn(UsersRolesPage.yesBtn); //Step 11 Verify Deleted Discipline no longer displays in Disciplines list. VerifyElement.IsNotPresent(By.XPath("(//td[@class='ng-binding'][text()='Test Discipline Edit']//parent::tr/td/button)[last()]")); }
public void AB_New_User_Access_for_Facility_Administrator_Assign_to_facility() { Browser.Open(); //Step 1 "On Caribou CLC Suite URL page: // Enter Email Address of New Facility Administrator to be added. Driver.InsertText(LoginPage.emailTextField, "*****@*****.**"); // Enter Password of New Facility Administrator. Driver.InsertText(LoginPage.passwordTextField, "Test123!"); // Select Facility for New User to receive access. Driver.ClickOn(By.XPath("//*[@id='location']/option[normalize-space(text())='Selenium, Facility']")); // Click REGISTER." Driver.ClickOn(LoginPage.registerButton); //Step 2 "Enter First Name of New Facility Administrator. Driver.InsertText(LoginPage.firstnameTextfield, "First Name"); // Enter Last Name of New Facility Administrator. Driver.InsertText(LoginPage.lastnameTextfield, "Last Name"); // Click REGISTER." Driver.ClickOn(LoginPage.registerButton); VerifyElement.AreEqual(LoginPage.bottomWarningMessage, "Looks like you do not have enough permissions to access Selenium, Facility facility. "); //Step 3 Re - enter password and click REQUEST ACCESS. Driver.InsertText(LoginPage.passwordTextField, "Test123!"); Driver.ClickOn(LoginPage.requestAccessButton); //Step 4 Sign in as Caribou. LoginPage.SignIn(); //Step 5 Select Admin Tile > Users & Roles from left side menu. LandingPage.NavigateToAdminPage(); SidebarMenu.NavigateToUsersRoles(); //Step 8 Verify new user added is displayed in list of users. Driver.ClickOn(By.XPath("(//a[@class='ng-binding'])[last()]")); VerifyElement.AreEqual(By.XPath("(//tr[@class='ng-scope']/td)[last()]//preceding-sibling::td[3]"), "*****@*****.**"); //Step 7 Select Facilities from lefr side menu. //Step 6 Select New Facility, Administrator requested access for> ADMIN button. //Step 9 Enter last name of Administrator requesting access in User Name box.Click highlighted name. //Step 10 Click SAVE. //Step 11 Click ADMIN button. }
private HtmlAnchor GetAdminToolUsers() { sidebarMenu = new SidebarMenu(manager); return(sidebarMenu.Users); }
private HtmlAnchor GetYourStuffProfile() { sidebarMenu = new SidebarMenu(manager); return(sidebarMenu.Profile); }
private HtmlAnchor GetAdminToolLanguages() { sidebarMenu = new SidebarMenu(manager); return(sidebarMenu.Languages); }
public void AI_Users_Roles_Add_Roles_Edit_Role_Delete_Role() { Browser.Open(); //Step 1 Log in as Facility Administrator. LoginPage.SignIn(); //Step 2 Select Admin Tile > Users & Roles from left side menu. LandingPage.NavigateToAdminPage(); SidebarMenu.NavigateToUsersRoles(); //Step 3 "Roles UsersRolesPage.VerifyDefaultFacilityRoles(); // Verify 26 Default Facility Roles are displayed. // Facility Administrator // Administrative Support // Central Office // Chaplian // IRM // IT // IS // Resident Assessment Coordinator // Resident Assessment Nurse // Registered Nurse // Medical Provider // Recreation Therapist // Registered Dietitian // Social Worker // Occupational Therapist // Physical Therapist // Coder // Registered Pharmacist // Psychologist // Kinesiotherapist // Respiratory Therapist // Speech Therapist // CNA // LPN // Quality Management // Therapy Assistants" //Step 4 Select + ADD ROLE Driver.ClickOn(UsersRolesPage.addRoleButton); //Step 5 "Enter Role Name: Test Role Driver.InsertText(FacilityRolePage.roleNameTextField, "Auto Role"); // Enter Description: Test Description Driver.InsertText(FacilityRolePage.descriptionTextField, "Auto Description"); // Permissions: Assign Permissions Write Assessments, Write Residents, Read Residents, Write Reports and Account Settings. Driver.ClickRadioButton(FacilityRolePage.writeAssessmentsCheckbox); Driver.ClickRadioButton(FacilityRolePage.writeResidentsCheckbox); Driver.ClickRadioButton(FacilityRolePage.readResidentsCheckbox); Driver.ClickRadioButton(FacilityRolePage.writeReportsCheckbox); Driver.ClickRadioButton(FacilityRolePage.accountSettingsCheckbox); // Verify SELECT SECTION ITEM PERMISSIONS becomes active." //Step 6 Select SELECT SECTION ITEM PERMISSIONS Driver.ClickOn(FacilityRolePage.selectSectionItemPermissionsButton); Driver.WaitFor(2); //Step 7 "Select Sections and Section questions for Test Role. // E.g.Section A, B, C-C0100, C0200, Z0400. // Click SAVE // Verify New role created and displays in list." Driver.ClickOn(FacilityRolePage.saveButton); //Step 8 Select View from Permissions column drop down arrow in Roles display and verify the Permissions given when creating Role match Permissions displayed. Driver.ClickOn(UsersRolesPage.rolesLastPagination); Driver.WaitFor(1); Driver.ClickOn(By.XPath("//tr[@class='ng-scope' and @ng-repeat='role in roles.list']//a")); //Step 9 Select EDIT button on Test Role. Driver.ClickOn(By.XPath("(//tr[@class='ng-scope' and @ng-repeat='role in roles.list']//button[@class='btn btn-info btn-xs'])[last()]")); //Step 10 "Add Permissions: Write Settings. // Remove Permissions: Write Assessments. // Click SAVE" Driver.ClickOn(FacilityRolePage.saveButton); //Step 11 Select View from Permissions column drop down arrow in Roles display and verify the Permissions given when creating Role match Permissions displayed. //Step 12 Select EDIT button on Test Role. Driver.ClickOn(UsersRolesPage.rolesLastPagination); Driver.ClickOn(By.XPath("(//tr[@class='ng-scope' and @ng-repeat='role in roles.list']//button[@class='btn btn-info btn-xs'])[last()]")); Driver.WaitForElement(FacilityRolePage.deleteBtn); //Step 13 Select DELETE. Driver.ClickOn(FacilityRolePage.deleteBtn); //Step 14 Select Yes. Driver.ClickOn(FacilityRolePage.yesBtn); //Step 15 Verify Test Role no longer displays in list of Roles. Driver.WaitFor(2); VerifyElement.IsNotPresent(By.XPath("//tr[@class='ng-scope' and @ng-repeat='role in roles.list']/td[contains(.,'Auto Role')]")); }