-
Notifications
You must be signed in to change notification settings - Fork 1
CCM-11889: migrate updated created fields #786
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
CCM-11889: migrate updated created fields #786
Conversation
|
|
||
| return ( | ||
| <ErrorSummary ref={errorSummaryRef}> | ||
| <ErrorSummary ref={errorSummaryRef} tabIndex={-1}> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why?
| <div | ||
| class="nhsuk-grid-row nhsuk-grid-column-two-thirds" | ||
| > | ||
| <div |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this test is for the validation being triggered so I'm not convinced the error summary should be removed from the snapshot?
| <div | ||
| class="nhsuk-grid-row nhsuk-grid-column-two-thirds" | ||
| > | ||
| <div |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same here
| expect(scrollIntoViewMock).not.toHaveBeenCalled(); | ||
| }); | ||
|
|
||
| test('Renders NhsNotifyErrorSummary correctly with empty error state', async () => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think based on your changes, might also be worth adding tests for errorState object having formError/fieldError keys but with falsy values, since component also won't render in those scenarios either now?
| } from '@aws-sdk/client-cognito-identity-provider'; | ||
| import { logger } from '@/src/utils/logger'; | ||
|
|
||
| export const INTERNAL_ID_ATTRIBUTE = 'custom:nhs_notify_user_id'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the ticket mentions username but I'm guessing this is what we're using instead?
| @@ -1 +0,0 @@ | |||
| *.json | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should we have something similar in the new dir?
| if (error instanceof ConditionalCheckFailedException) { | ||
| return 'lock-failure'; | ||
| } | ||
| logger.error( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
do you not want one of these error logs before your lock-failure return?
| // act | ||
| let caughtError; | ||
| try { | ||
| await discoverUserPoolId('nonexistent'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not something to change but an FYI you canw write this as
await expect(discoverUserPoolId('nonexistent')).rejects.toThrowError('User pool nhs-notify-nonexistent-app not found')
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.