FOUR-18315 | Include Tests For Accurate Filtering and Display of Templates by mcraeteisha · Pull Request #7369 · ProcessMaker/processmaker

Task

Ticket: FOUR-18315

This PR introduces comprehensive Cypress tests for the Screen Templates Panel in screen-builder and adds template-fetching functionality to screen-builder.

The tests check that:

  • My Templates are displayed when the 'My Templates' button is clicked in the Screen Templates Panel
  • Shared Templares are displayed when the 'Shared Templates' button is clicked in the Screen Templates Panel

This PR also refactors the handling of templates data, and the show/close functionality for the Screen Templates Panel.

How to Test

  1. Go to branch task/FOUR-18315 in screen-builder and processmaker.
  2. Run npx open cypress and npm run dev in your screen-builder terminal.
  3. Run tests for ScreenTemplateSection.spec.js in Cypress.
    • All tests should pass.

ci:next

Screen Builder PR

Code Review Checklist

  • I have pulled this code locally and tested it on my instance, along with any associated packages.
  • This code adheres to ProcessMaker Coding Guidelines.
  • This code includes a unit test or an E2E test that tests its functionality, or is covered by an existing test.
  • This solution fixes the bug reported in the original ticket.
  • This solution does not alter the expected output of a component in a way that would break existing Processes.
  • This solution does not implement any breaking changes that would invalidate documentation or cause existing Processes to fail.
  • This solution has been tested with enterprise packages that rely on its functionality and does not introduce bugs in those packages.
  • This code does not duplicate functionality that already exists in the framework or in ProcessMaker.
  • This ticket conforms to the PRD associated with this part of ProcessMaker.