Closed baltes closed 2 months ago
@baltes This was approved and merged to master https://github.com/department-of-veterans-affairs/vets-api/pull/17375
@balexandr questions:
@baltes
@balexandr Do we need an additional ticket to add metrics for this to datadog?
Question two is about when the test is run and how it's visible when it fails. If we implement this on 10-10d and it only breaks when we have more than three applicants and need more than one PDF, what do we have to do to make sure that scenario would be caught? Just trying to fill my own knowledge gaps of the testing pyramid and what other work we might still need to do.
Do we need additional tickets to implement this for each form, or is it implemented in reuasable code that will apply to all of them? (do we need a ticket for 10-10d, a ticket for 10-7959f-1, etc)
@baltes Which metric specifically? I think we have everything we can have covered on the BE so far.
Our tests have to pass before we merge any code changes to higher environments. So if we update the code, and it breaks this test we'll know immediately. It's set up to fail if there is an overall text mismatch between a filled.pdf and the test's generated one.
We will need future tickets for new forms. In this ticket, I did it for 10-10D, 10-7959C, 10-7959F-1 and 10-7959F-2
Thanks, that helps and I think that last sentence covered what I was trying to ask.
As a CHAMPVA applicant, I need my form data to populate correctly in the PDFs sent to the back office for processing.
Scope for this story is form 10-10d.
Acceptance criteria
Reference
See this post/thread in Slack for more info.
Evaluate pdf_filler_spec.rb and pdf_spec.rb for implementing these automated tests.