Open Alokih opened 2 weeks ago
The pull request introduces modifications to the Cypress end-to-end test suite for the facility homepage, including the addition of a sidebar collapse and expand functionality test. Enhancements to the FacilityHome
class allow for improved sidebar interactions. The existing capacity export functionality has been integrated into the facility export test. Additionally, new data-testid
attributes have been added to various components to enhance testability.
File Path | Change Summary |
---|---|
cypress/e2e/facility_spec/FacilityHomepage.cy.ts | Added sidebar collapse/expand test, integrated capacity export into facility export test, moved afterEach hook. |
cypress/pageobject/Facility/FacilityHome.ts | Added methods for sidebar interactions: toggleSidebar() , verifyIconsAndTextVisible() , verifyIconsVisibleAndTextHidden() , and new selectors for sidebar elements. |
src/components/Common/Sidebar/Sidebar.tsx | Added data-testid="sidebar-toggle" to the button element in ToggleShrink . |
src/components/Common/Sidebar/SidebarItem.tsx | Added data-testid attributes to div and span for sidebar icon and text in SidebarItemBase . |
Objective | Addressed | Explanation |
---|---|---|
Refactor the existing facility export and add test for sidebar collapse (9043) | β | |
Verify sidebar functionality: icons/text visibility when collapsed/expanded (9043) | β | |
Integrate capacity export into facility export functionality (9043) | β |
FacilityHome
class and its methods related to the sidebar and filtering capabilities.tested
In the land of tests, where bunnies play,
The sidebar toggles in a joyful way.
With icons shining bright and texts that hide,
Our Cypress tests now take a grand ride!
So hop along, dear friends, and see,
How smoothly our features now can be! πβ¨
[!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/facility_spec/FacilityHomepage.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 | 9d65b4fbb2a59a59d2680ae4e23d1d951ef54ce2 |
Latest deploy log | https://app.netlify.com/sites/care-ohc/deploys/6738958310b28e0008eeb203 |
Deploy Preview | https://deploy-preview-9066--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.
:wave: Hi, @Alokih, Conflicts have been detected against the base branch. Please rebase your branch against the base branch.
This message is automatically generated by prince-chrismc/label-merge-conflicts-action so don't hesitate to report issues/improvements there.
@Alokih make the requested changes
@nihal467 I have my end sem exams going on currently. Can I do it after few days ?
@Alokih that's fine, but can you mention a date when you are expecting to complete it
@Alokih that's fine, but can you mention a date when you are expecting to complete it
Tomorrow is the last one , so I will try to complete it by Day after tomorrow.
Proposed Changes
@ohcnetwork/care-fe-code-reviewers
Merge Checklist
Summary by CodeRabbit
New Features
Improvements
data-testid
attributes to components for better testability.Bug Fixes