-
Notifications
You must be signed in to change notification settings - Fork 4
Add Cypress tests for work order page navigation between days and months #64
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
Conversation
✅ Snyk checks have passed. No issues have been found so far.
💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse. |
Here's the code health analysis summary for commits Analysis Summary
|
Co-authored-by: dangowans <19495149+dangowans@users.noreply.github.com>
Co-authored-by: dangowans <19495149+dangowans@users.noreply.github.com>
Please retry analysis of this Pull-Request directly on SonarQube Cloud |
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #64 +/- ##
=======================================
Coverage 59.59% 59.59%
=======================================
Files 401 401
Lines 14209 14209
=======================================
Hits 8468 8468
Misses 5741 5741 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
This PR adds comprehensive Cypress test coverage for the work order page navigation features that were previously untested.
Changes
workOrderWorkday Cypress Test
Enhanced
cypress/e2e/02-update/workOrderWorkday.cy.ts
with a new test case that validates paging between days:workOrderMilestoneCalendar Cypress Tests
Enhanced
cypress/e2e/03-readOnly/workOrderMilestoneCalendar.cy.ts
with three new test cases:Month navigation (forward): Validates clicking the "Next Month" button properly advances to the next month, including year rollover when necessary
Month navigation (backward): Validates clicking the "Previous Month" button properly goes to the previous month, including year rollback when necessary
Calendar date link navigation: Validates that clicking a date link in the milestone calendar navigates to the workday view with the correct date parameter in the URL
Implementation Details
ajaxDelayMillis
constant for appropriate wait times after AJAX operationscy.wrap().click()
method for better retry logic and command chainingThese tests improve coverage of critical navigation features and will help prevent regressions in the work order management workflow.
Original prompt
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.