diff --git a/services/web/frontend/js/features/pdf-preview/components/pdf-preview-error.js b/services/web/frontend/js/features/pdf-preview/components/pdf-preview-error.js
index 3ddd04b789..2b4868acb1 100644
--- a/services/web/frontend/js/features/pdf-preview/components/pdf-preview-error.js
+++ b/services/web/frontend/js/features/pdf-preview/components/pdf-preview-error.js
@@ -16,6 +16,14 @@ function PdfPreviewError({ error }) {
return (
{t('something_went_wrong_rendering_pdf')}
+
+ ,
+ ]}
+ />
)
diff --git a/services/web/test/frontend/components/pdf-preview/pdf-preview.spec.tsx b/services/web/test/frontend/components/pdf-preview/pdf-preview.spec.tsx
index 8c670ef331..2dc517c3ae 100644
--- a/services/web/test/frontend/components/pdf-preview/pdf-preview.spec.tsx
+++ b/services/web/test/frontend/components/pdf-preview/pdf-preview.spec.tsx
@@ -557,7 +557,10 @@ describe('', function () {
cy.wait('@compile-pdf-error')
- cy.findByText('Something went wrong while rendering this PDF.')
+ cy.contains('Something went wrong while rendering this PDF.')
+ cy.contains(
+ 'Please try recompiling the project from scratch, and if that doesn’t help, follow our troubleshooting guide.'
+ )
cy.findByLabelText('Page 1').should('not.exist')
})
@@ -578,7 +581,10 @@ describe('', function () {
cy.wait('@compile-pdf-corrupt')
- cy.findByText('Something went wrong while rendering this PDF.')
+ cy.contains('Something went wrong while rendering this PDF.')
+ cy.contains(
+ 'Please try recompiling the project from scratch, and if that doesn’t help, follow our troubleshooting guide.'
+ )
cy.findByLabelText('Page 1').should('not.exist')
})
})