Closed scottqueen-bixal closed 1 year ago
Here is a comprehensive approach to testing PDF in cypress https://filiphric.com/testing-pdf-file-with-cypress - do you think this will help us implement this test?
@nehemiah-abuga this work seems to be taking a bit longer than our initial estimate, please update LOE
Description
It was noted in the README.md that:
Please include a new test that confirms this integration as part of our e2e automation tests.
current behavior
https://github.com/GSA/usagov-benefits-eligibility/assets/37077057/e8f83223-3d45-4f61-8c3c-3cfb0cfaad8e
User Story
As a visitor to the site, I want to print the current state of my selections.
As a developer I want to make changes to the website and be notified if the print functionality is no longer working as expected.
As a QE I want to integrate an e2e test that will :
Architectural Decision Records (ADRs)
Note:
Given when we utilize cypress to trigger printing, a browser window pops up and the test will remain stuck until a user interacts with the window to close it, this test will stub the call to print and include an assertion to validate that printing was called once. To avoid opening print dialogue which makes the test stuck, we can stub the window.print method before the application calls it.