Altinn / Altinn/app-frontend-react
Cypress tests for new PDF generator
Open
area/summary
area/test
- Dominant language
- TypeScript
- Stars
- 21
- Forks
- 33
- Avg merge
- 6d 23h
- Merged PRs (30d)
- 3
Description
In #861 I took a mental note that automatic PDF generation might not work after my (extensive) changes. Sadly, PDF crashes immediately, but no cypress test ever alerted me of that fact.
- We need automatic tests for this PDF (preview mode) in cypress, including:
- [ ] Mocking the `pdfFormat` API response with different results
- [x] Asserting that all the filled-in data is present and visible (look at `summary.ts` for inspiration)
- [x] With/without custom PDF layout/automatic PDF layout
- [ ] With different hidden components in `excludeFromPdf` (also inside repeating groups)
Contributor guide
Assessment
This issue has not been assessed yet.