Conversation
…emplate-management into feature/CCM-15018-request-proof-link
...test-team/template-mgmt-component-tests/sms/template-mgmt-preview-sms-page.component.spec.ts
Show resolved
Hide resolved
frontend/src/content/content.ts
Outdated
| @@ -1218,6 +1290,13 @@ const previewDigitalTemplate = { | |||
| EMAIL: | |||
| 'This is only a basic preview. [Send a test email](/templates/send-test-email/{{templateId}}) to preview this message properly.', | |||
There was a problem hiding this comment.
if you go with what I suggest in the pw tests about having separate locators for each banner, you could override the testid like we've done elsewhere in here and set it differently for each banner type in content, rather than it being hard-coded in PreviewDigitalTemplate?
There was a problem hiding this comment.
Good shout - thank you. I've updated the content to reflect this. I think the content object is a bit more complex but the component is much simplier.
...m/template-mgmt-component-tests/nhs-app/template-mgmt-preview-nhs-app-page.component.spec.ts
Show resolved
Hide resolved
...-team/template-mgmt-component-tests/email/template-mgmt-preview-email-page.component.spec.ts
Show resolved
Hide resolved
frontend/src/components/organisms/PreviewDigitalTemplate/PreviewDigitalTemplate.tsx
Outdated
Show resolved
Hide resolved
23f29b4
frontend/src/__tests__/app/request-a-proof/__snapshots__/page.test.tsx.snap
Outdated
Show resolved
Hide resolved
frontend/src/components/molecules/PreviewTemplateDetails/DigitalTemplateBanner.tsx
Outdated
Show resolved
Hide resolved
frontend/src/components/organisms/PreviewDigitalTemplate/PreviewDigitalTemplate.tsx
Outdated
Show resolved
Hide resolved
frontend/src/components/organisms/PreviewDigitalTemplate/PreviewMessageBanner.tsx
Outdated
Show resolved
Hide resolved
| </div> | ||
| </dl> | ||
| </div> | ||
| <div |
There was a problem hiding this comment.
pls can you add another of these for when digital proofing is turned on for email, so we can have a snapshot with the other banner?
| </div> | ||
| </dl> | ||
| </div> | ||
| <div |
There was a problem hiding this comment.
same here, could you add for app digi proofing on too?
| </div> | ||
| </dl> | ||
| </div> | ||
| <div |
frontend/src/__tests__/components/organisms/__snapshots__/PreviewDigitalTemplate.test.tsx.snap
Outdated
Show resolved
Hide resolved
…emplate-management into feature/CCM-15018-request-proof-link
…emplate-management into feature/CCM-15018-request-proof-link
…emplate-management into feature/CCM-15018-request-proof-link
| import type { ContentBlock } from '@molecules/ContentRenderer/ContentRenderer'; | ||
| import { getBasePath } from '@utils/get-base-path'; | ||
| import { markdownList } from '@utils/markdown-list'; | ||
| import { MarkdownToJSX } from 'markdown-to-jsx'; |
There was a problem hiding this comment.
maybe re-export this from the util file, rather importing directly?
Description
Context
Type of changes
Checklist
Sensitive Information Declaration
To ensure the utmost confidentiality and protect your and others privacy, we kindly ask you to NOT including PII (Personal Identifiable Information) / PID (Personal Identifiable Data) or any other sensitive data in this PR (Pull Request) and the codebase changes. We will remove any PR that do contain any sensitive information. We really appreciate your cooperation in this matter.