Skip to content

PO-2948#2263

Open
iamfrankiemoran wants to merge 8 commits intomasterfrom
PO-2948
Open

PO-2948#2263
iamfrankiemoran wants to merge 8 commits intomasterfrom
PO-2948

Conversation

@iamfrankiemoran
Copy link
Copy Markdown
Contributor

Jira link

PO-2948

Change description

  • Prevent user from submitting an offence details form with an invalid code before the API call has returned as spotted in this bug ticket
  • Probably need to run the error messages via UCD first but this is the initial ticket

Testing done

  • Works as expected

Security Vulnerability Assessment

CVE Suppression: Are there any CVEs present in the codebase (either newly introduced or pre-existing) that are being intentionally suppressed or ignored by this commit?

  • Yes
  • No

Checklist

  • commit messages are meaningful and follow good commit message guidelines
  • README and other documentation has been updated / added (if needed)
  • tests have been updated / new tests has been added (if needed)
  • Does this PR introduce a breaking change

Copy link
Copy Markdown
Contributor

@Arnabsubedi233 Arnabsubedi233 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

expect(onConfirmChangeSpy).toHaveBeenCalledWith(true);
});

it('should mark code as invalid when response count is greater than 1', () => {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think this test is correct, a response with a count greater than 1 shouldn't be inherently invalid. (See WIP exact offence code matching #2384)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants