コード例 #1
0
 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()]"));
 }
コード例 #2
0
 internal static void VerifyOBRAassessmentType()
 {
     try
     {
         // Admission
         if (Driver.IsElementPresent(admissionAssessment))
         {
             VerifyElement.IsPresent(admissionAssessment);
         }
         else
         {
             Driver.ClickOn(SchedulePage.nextPagination);
             VerifyElement.IsPresent(admissionAssessment);
             Driver.ClickOn(SchedulePage.previousPagination);
         }
         // Quarterly
         if (Driver.IsElementPresent(quarterlyAssessment))
         {
             VerifyElement.IsPresent(quarterlyAssessment);
         }
         else
         {
             Driver.ClickOn(SchedulePage.nextPagination);
             VerifyElement.IsPresent(quarterlyAssessment);
             Driver.ClickOn(SchedulePage.previousPagination);
         }
         VerifyElement.IsNotPresent(SchedulePage.fivedayAssessment);
         VerifyElement.IsNotPresent(SchedulePage.fourteendayAssessment);
         VerifyElement.IsNotPresent(SchedulePage.thirtydayAssessment);
         VerifyElement.IsNotPresent(SchedulePage.sixtydayAssessment);
         VerifyElement.IsNotPresent(SchedulePage.ninetydayAssessment);
     }
     catch (Exception e)
     {
         VerifyElement.ExceptionLog(e.Message);
     }
 }
コード例 #3
0
 public void EN_Facility_Settings_CAA_Setting()
 {
     Browser.Open();
     LoginPage.SignIn();
     //Step 1  Log in as Facility Administrator.
     //Step 2  Click Admin tile.
     LandingPage.NavigateToAdminPage();
     //Step 3  Click Facility Settings in the left hand menu.
     AdminPage.NavigateToFacilitySettings();
     //Step 4  "Care Areas
     //      Check box with Use Care Area Assessments?
     //      Verify check box is checked signifying Care
     //      Area Assessments are turned on."
     if (Driver.IsElementPresent(By.XPath("(//input[@aria-checked='true'])[1]//ancestor::label[contains(., 'Use Care Area')]")))
     {
         Driver.ClickOn(FacilitySettingsPage.saveButton);
     }
     else
     {
         Driver.ClickOn(By.XPath("//div[@class='icheckbox_square-blue']"));
         Driver.ClickOn(FacilitySettingsPage.saveButton);
     }
     //Step 5  Click SAVE button.
     //Step 6  Click the breadcrumb "Caribou CLC Suite"
     Driver.ClickOn(UserMenu.userIcon);
     //Step 7  Click Work In Progress Tile.
     Driver.ClickOn(UserMenu.wipIcon);
     //Step 8  "Select a resident with a comprehensive assessment (Admission or Annual).
     Driver.ClickOn(WorkInProgressPage.ppsFilterButtonChecked);
     if (Driver.IsElementPresent(By.XPath(admissionOpenWIP)))
     {
         Driver.ClickOn(By.XPath(admissionOpenWIP));
     }
     else
     {
         Driver.ClickOn(SchedulePage.twoPagination);
         Driver.ClickOn(By.XPath(admissionOpenWIP));
     }
     //Click OPEN WIP button to the right of the Assessment to be opened."
     //Step 9  Click Section V in the left hand menu.
     //Step 10 "Scroll to V0200. CAAs and Care Planning
     //A.CAA Results"
     //Step 11 Verify Details column displays CAA buttons signifying that the Care Area Assessments are active.
     Driver.WaitFor(4);
     Browser.ScrollToElement("//*[@id='sectionv-content']/div[10]/div/div/div[1]/button");
     VerifyElement.IsPresent(By.XPath("(//button[@uib-tooltip='Delirium Assessment'])[1]"));
     //Step 12 Click Cancel.
     //Step 13 Click the breadcrumb "Caribou CLC Suite"
     Driver.ClickOn(UserMenu.caribouCLCSuiteLink);
     //Step 14 Click Admin tile.
     LandingPage.NavigateToAdminPage();
     //Step 15 Click Facility Settings in the left hand menu.
     AdminPage.NavigateToFacilitySettings();
     //Step 16 "Care Areas
     //Uncheck check box for Use Care Area Assessments signifying Care Area Assessments are turned off."
     Driver.ClickOn(By.XPath("(//input[@aria-checked='true'])[1]//ancestor::label[contains(., 'Use Care Area')]"));
     //Step 17 Click SAVE button.
     Driver.ClickOn(FacilitySettingsPage.saveButton);
     //Step 18 Click the breadcrumb "Caribou CLC Suite"
     Driver.ClickOn(UserMenu.userIcon);
     //Step 19 Click Work In Progress tile.
     Driver.ClickOn(UserMenu.wipIcon);
     //Step 20 "Select a resident with a comprehensive  assessment (Admission or Annual).
     //Click OPEN WIP button to the right of the Assessment to be opened."
     Driver.ClickOn(WorkInProgressPage.ppsFilterButtonChecked);
     if (Driver.IsElementPresent(By.XPath(admissionOpenWIP)))
     {
         Driver.ClickOn(By.XPath(admissionOpenWIP));
     }
     else
     {
         Driver.ClickOn(SchedulePage.twoPagination);
         Driver.ClickOn(By.XPath(admissionOpenWIP));
     }
     //Step 21 Click Section V.
     Driver.ClickOn(By.XPath("//a[contains(., 'Section V')]"));
     //Step 22  Click Section V in the left hand menu.
     //Step 23 "Scroll to V0200. CAAs and Care Planning
     //A.CAA Results"
     Driver.WaitFor(4);
     Browser.ScrollToElement("//*[@id='sectionv-content']/div[10]/div/div/div[1]/button");
     //Step 24 Verify that Details column does not exist.
     VerifyElement.IsNotPresent(By.XPath("(//button[@uib-tooltip='Delirium Assessment'])[1]"));
     //Step 25 Click the breadcrumb "Caribou CLC Suite"
     Driver.ClickOn(UserMenu.userIcon);
     Driver.ClickOn(UserMenu.signoutButton);
 }
コード例 #4
0
 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')]"));
 }