Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cypress | Shift Filter | POM Approach #5833

Merged
merged 2 commits into from
Jul 4, 2023
Merged

Conversation

nihal467
Copy link
Member

@nihal467 nihal467 commented Jul 4, 2023

WHAT

🤖 Generated by Copilot at 6c57369

The pull request refactors the test code for the shifting section filter using a page object class ShiftingPage. It also adds id attributes to some filter components in FiltersSlideover.tsx to make them easier to locate by the test code. The changes aim to improve the readability, maintainability, and robustness of the test code.

Proposed Changes

  • Fixes #issue?
  • Change 1
  • Change 2
  • More?

@coronasafe/care-fe-code-reviewers @coronasafe/code-reviewers

Merge Checklist

  • Add specs that demonstrate bug / test a new feature.
  • Update product documentation.
  • Ensure that UI text is kept in I18n files.
  • Prep screenshot or demo video for changelog entry, and attach it to issue.
  • Request for Peer Reviews
  • Completion of QA

HOW

🤖 Generated by Copilot at 6c57369

  • Refactor the test code for the shifting section filter using the page object pattern (link, link, link)
  • Import and instantiate the ShiftingPage class from cypress/pageobject/Shift/ShiftFilters.ts in the test file cypress/e2e/shifting_spec/filter.cy.ts (link)
  • Replace the low-level commands for interacting with the filter inputs and buttons with the high-level methods from the ShiftingPage class (link)
  • Define the ShiftingPage class with methods for accessing and manipulating the filter elements and buttons in cypress/pageobject/Shift/ShiftFilters.ts (link)
  • Add id attributes to the filter buttons in the FiltersSlideover component (link, link)
    • Add an id attribute to the clear and apply filter buttons in src/CAREUI/interactive/FiltersSlideover.tsx (link)
    • Add an id attribute to the advanced filter button in src/CAREUI/interactive/FiltersSlideover.tsx (link)

@nihal467 nihal467 requested a review from a team July 4, 2023 11:33
@nihal467 nihal467 requested a review from a team as a code owner July 4, 2023 11:33
@nihal467 nihal467 requested a review from mathew-alex July 4, 2023 11:33
@vercel
Copy link

vercel bot commented Jul 4, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
care-storybook ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 4, 2023 0:47am

@netlify
Copy link

netlify bot commented Jul 4, 2023

Deploy Preview for care-egov-staging ready!

Name Link
🔨 Latest commit 479b10f
🔍 Latest deploy log https://app.netlify.com/sites/care-egov-staging/deploys/64a4148b7f1fe00008db8150
😎 Deploy Preview https://deploy-preview-5833--care-egov-staging.netlify.app/
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@github-actions github-actions bot added the cypress failed pull request with cypress test failure label Jul 4, 2023
@github-actions github-actions bot added cypress passed and removed cypress failed pull request with cypress test failure labels Jul 4, 2023
@khavinshankar khavinshankar merged commit 4d4839a into develop Jul 4, 2023
24 checks passed
@khavinshankar khavinshankar deleted the Shift-filter-POM branch July 4, 2023 13:33
@github-actions
Copy link

github-actions bot commented Jul 4, 2023

@nihal467 We truly appreciate your efforts. Thank you for taking the time to contribute; this is a very valuable contribution to us 🥇. We always welcome your contribution 🙂, so feel free to contribute to anything anytime, and never lose that spirit of innovation 🙌.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants