Closed nihal467 closed 1 day ago
The changes in this pull request involve the integration of a new pagination helper across multiple test files, replacing the previous AssetPagination
class. The pageNavigation
utility is introduced to streamline pagination functionality, including methods for navigating between pages and verifying the current page number. The modifications affect several test files, ensuring that pagination logic is centralized and enhancing the maintainability of the test code.
File Path | Change Summary |
---|---|
cypress/e2e/assets_spec/AssetHomepage.cy.ts |
Removed AssetPagination import; added pageNavigation import; updated pagination methods. |
cypress/e2e/facility_spec/FacilityHomepage.cy.ts |
Removed AssetPagination import; added pageNavigation import; updated pagination methods. |
cypress/e2e/facility_spec/FacilityLocation.cy.ts |
Removed AssetPagination import; added pageNavigation import; updated pagination methods. |
cypress/e2e/patient_spec/PatientHomepage.cy.ts |
Added pageNavigation import; replaced pagination methods with pageNavigation methods. |
cypress/e2e/users_spec/UsersHomepage.cy.ts |
Added pageNavigation import; replaced pagination methods with pageNavigation methods. |
cypress/pageobject/Asset/AssetPagination.ts |
Removed the entire AssetPagination class and its associated methods. |
cypress/pageobject/Patient/PatientHome.ts |
Removed pagination-related methods: clickNextPage , verifySecondPageUrl , clickPreviousPage . |
cypress/pageobject/Users/UserSearch.ts |
Removed pagination-related methods: navigateToNextPage , navigateToPreviousPage , verifyCurrentPageNumber . |
cypress/pageobject/utils/paginationHelpers.ts |
Introduced new paginationHelpers.ts file with pageNavigation object and pagination methods. |
cypress/e2e/hcx_spec/HcxClaims.cy.ts |
Updated patient name variable from "Dummy Patient 14" to "Dummy Patient Thirteen". |
cypress/e2e/patient_spec/PatientBedManagement.cy.ts |
Updated patient names from numerical to word forms. |
cypress/e2e/patient_spec/PatientConsultationCreation.cy.ts |
Updated patient identifier from "Dummy Patient 13" to "Dummy Patient Thirteen". |
cypress/e2e/patient_spec/PatientConsultationDischarge.cy.ts |
Updated patient identifiers to more descriptive names. |
cypress/e2e/patient_spec/PatientDoctorConnect.cy.ts |
Updated patient and doctor names to more descriptive forms. |
cypress/e2e/patient_spec/PatientDoctorNotes.cy.ts |
Updated patient name from "Dummy Patient 4" to "Dummy Patient Four". |
cypress/e2e/patient_spec/PatientFileUpload.ts |
Updated patient names from numerical to word forms. |
cypress/e2e/patient_spec/PatientInvestigation.cy.ts |
Updated patient name from "Dummy Patient 14" to "Dummy Patient Thirteen". |
cypress/e2e/patient_spec/PatientLogUpdate.cy.ts |
Updated patient identifiers from numerical to word forms. |
cypress/e2e/patient_spec/PatientPrescription.cy.ts |
Updated patient names from numerical to word forms. |
cypress/e2e/patient_spec/PatientRegistration.cy.ts |
Updated patientTransferName from "Dummy Patient 10" to "Dummy Patient Twelve". |
cypress/e2e/sample_test_spec/SampleTestRequest.cy.ts |
Updated patient name from "Dummy Patient 11" to "Dummy Patient Eleven". |
AssetPagination
with pageNavigation
.needs review
, tested
π° In the fields where rabbits play,
Pagination hops along the way.
WithpageNavigation
now in sight,
Our tests will run both fast and bright.
Goodbye to old, hello to new,
Hopping pages, just for you! πΌ
[!WARNING] There were issues while running some tools. Please review the errors and either fix the toolβs configuration or disable the tool if itβs a critical failure.
π§ eslint
> If the error stems from missing dependencies, add them to the package.json file. For unrecoverable errors (e.g., due to private dependencies), disable the tool in the CodeRabbit configuration.cypress/e2e/patient_spec/PatientRegistration.cy.ts
Oops! Something went wrong! :( ESLint: 8.57.1 Error: Failed to load parser '@typescript-eslint/parser' declared in '.eslintrc.json': Cannot find module '@typescript-eslint/parser' Require stack: - /.eslintrc.json at Module._resolveFilename (node:internal/modules/cjs/loader:1248:15) at Function.resolve (node:internal/modules/helpers:145:19) at Object.resolve (/node_modules/@eslint/eslintrc/dist/eslintrc.cjs:2346:46) at ConfigArrayFactory._loadParser (/node_modules/@eslint/eslintrc/dist/eslintrc.cjs:3325:39) at ConfigArrayFactory._normalizeObjectConfigDataBody (/node_modules/@eslint/eslintrc/dist/eslintrc.cjs:3099:43) at _normalizeObjectConfigDataBody.next () at ConfigArrayFactory._normalizeObjectConfigData (/node_modules/@eslint/eslintrc/dist/eslintrc.cjs:3040:20) at _normalizeObjectConfigData.next ( ) at ConfigArrayFactory.loadInDirectory (/node_modules/@eslint/eslintrc/dist/eslintrc.cjs:2886:28) at CascadingConfigArrayFactory._loadConfigInAncestors (/node_modules/@eslint/eslintrc/dist/eslintrc.cjs:3871:46)
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
Name | Link |
---|---|
Latest commit | bddb37d18ba9a8782cfd2b20f15f9eff62c6b23d |
Latest deploy log | https://app.netlify.com/sites/care-ohc/deploys/673dddaf76843e0008bcddf4 |
Deploy Preview | https://deploy-preview-9163--care-ohc.netlify.app |
Preview on mobile | Toggle QR Code...Use your smartphone camera to open QR code link. |
To edit notification comments on pull requests, go to your Netlify site configuration.
Latest commit: |
bddb37d
|
Status: | β Deploy successful! |
Preview URL: | https://64f487c3.care-fe.pages.dev |
Branch Preview URL: | https://pagination-helper-function.care-fe.pages.dev |
Passed #3935
•
bddb37d18b: Refactored the pagination component in cypress
Project |
CARE
|
Branch Review |
pagination-helper-function
|
Run status |
Passed #3935
|
Run duration | 04m 52s |
Commit |
bddb37d18b: Refactored the pagination component in cypress
|
Committer | Mohammed Nihal |
View all properties for this run βοΈ |
Test results | |
---|---|
Failures |
0
|
Flaky |
0
|
Pending |
0
|
Skipped |
0
|
Passing |
129
|
View all changes introduced in this branch βοΈ |
@nihal467 Your efforts have helped advance digital healthcare and TeleICU systems. :rocket: Thank you for taking the time out to make CARE better. We hope you continue to innovate and contribute; your impact is immense! :raised_hands:
Proposed Changes
@ohcnetwork/care-fe-code-reviewers
Merge Checklist
Summary by CodeRabbit
Release Notes
New Features
Bug Fixes
Refactor
pageNavigation
utility, improving code organization.