Skip to content

Commit

Permalink
feat: test modal popup
Browse files Browse the repository at this point in the history
  • Loading branch information
kevin9foong committed Jul 10, 2024
1 parent 28bcdfe commit fbcdad0
Showing 1 changed file with 46 additions and 0 deletions.
46 changes: 46 additions & 0 deletions frontend/src/features/public-form/PublicFormPage.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -443,6 +443,52 @@ CorppassSingleSubmissionFailuredMessage.parameters = {
],
}

export const SgIdSingleSubmissionFailureModalAfterSubmit = Template.bind({})
SgIdSingleSubmissionFailureModalAfterSubmit.storyName =
'SGID/Single Submission Per NRIC/FIN/UEN Failure Modal After Submit'
SgIdSingleSubmissionFailureModalAfterSubmit.parameters = {
msw: [
...envHandlers,
getPublicFormResponse({
delay: 0,
overrides: {
form: {
title: 'SGID login form',
authType: FormAuthType.SGID,
isSingleSubmission: true,
},
spcpSession: {
userName: 'S1234567A',
},
hasSingleSubmissionValidationFailure: true,
},
}),
],
}

export const CpSingleSubmissionFailureModalAfterSubmit = Template.bind({})
CpSingleSubmissionFailureModalAfterSubmit.storyName =
'CP/Single Submission Per NRIC/FIN/UEN Failure Modal After Submit'
CpSingleSubmissionFailureModalAfterSubmit.parameters = {
msw: [
...envHandlers,
getPublicFormResponse({
delay: 0,
overrides: {
form: {
title: 'CP login form',
authType: FormAuthType.CP,
isSingleSubmission: true,
},
spcpSession: {
userName: 'uen-123456789A',
},
hasSingleSubmissionValidationFailure: true,
},
}),
],
}

export const VerifiedFieldsExpiry = Template.bind({})
VerifiedFieldsExpiry.parameters = {
msw: [
Expand Down

0 comments on commit fbcdad0

Please sign in to comment.