Skip to content

Commit

Permalink
15310 - text update for continuation in application (#2775)
Browse files Browse the repository at this point in the history
* 15310 - text update for continuation in application

* 15310 - update unit tests
  • Loading branch information
ketaki-deodhar authored Apr 26, 2024
1 parent 38f9f02 commit 7cb918f
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 15 deletions.
4 changes: 2 additions & 2 deletions auth-web/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion auth-web/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "auth-web",
"version": "2.5.20",
"version": "2.5.21",
"appName": "Auth Web",
"sbcName": "SBC Common Components",
"private": true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -792,8 +792,8 @@ export default class EntityManagement extends Mixins(AccountMixin, AccountChange
populateContinuationInModalValues () {
this.dialogTitle = this.$t('removeContinuationInConfirmTitle').toString()
this.dialogText = this.$t('removeContinuationInConfirmText').toString()
this.primaryBtnText = 'Delete Continuation In'
this.secondaryBtnText = 'Keep Continuation In'
this.primaryBtnText = 'Delete Continuation In Application'
this.secondaryBtnText = 'Keep Continuation In Application'
this.primaryBtnHandler = this.confirmRemovalContinuationIn
this.secondaryBtnHandler = this.cancelRemoval
}
Expand Down
8 changes: 4 additions & 4 deletions auth-web/src/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -206,10 +206,10 @@
"removeAmalgamationSuccessText": "You have successfully deleted an amalgamation application",
"removeAmalgamationConfirmTitle": "Delete Amalgamation Application?",
"removeAmalgamationConfirmText": "Deleting this amalgamation application will remove the application from your Business Registry list. If this amalgamation application was associated with a Name Request, the Name Request can still be used to start an amalgamation application.",
"removeContinuationInSuccessTitle": "Continuation In Deleted",
"removeContinuationInSuccessText": "You have successfully deleted a continuation in",
"removeContinuationInConfirmTitle": "Delete Continuation In?",
"removeContinuationInConfirmText": "Deleting this continuation in will remove the application from your Business Registry list. If this continuation in was associated with a Name Request, the Name Request can still be used to start a continuation in.",
"removeContinuationInSuccessTitle": "Continuation In Application Deleted",
"removeContinuationInSuccessText": "You have successfully deleted a continuation in application",
"removeContinuationInConfirmTitle": "Delete Continuation In Application?",
"removeContinuationInConfirmText": "Deleting this continuation in application will remove the application from your Business Registry list. If this continuation in was associated with a Name Request, the Name Request can still be used to start a continuation in.",
"removeRegistrationSuccessTitle": "Registration Deleted",
"removeRegistrationSuccessText": "You have successfully deleted a registration",
"removeRegistrationConfirmTitle": "Delete Registration?",
Expand Down
4 changes: 2 additions & 2 deletions auth-web/src/util/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ export enum AffiliationTypes {
NAME_REQUEST = 'Name Request',
AMALGAMATION_APPLICATION = 'Amalgamation Application',
INCORPORATION_APPLICATION = 'Incorporation Application',
CONTINUATION_IN = 'Continuation In',
CONTINUATION_IN = 'Continuation In Application',
CORPORATION = 'Corporation',
REGISTRATION = 'Registration'
}
Expand All @@ -181,7 +181,7 @@ export enum CorpTypes {
PARTNERSHIP = 'GP',
SOLE_PROP = 'SP',

BC_CONTINUE_IN = 'C',
CONTINUE_IN = 'C',
BEN_CONTINUE_IN = 'CBEN',
CCC_CONTINUE_IN = 'CCC',
ULC_CONTINUE_IN = 'CUL',
Expand Down
8 changes: 4 additions & 4 deletions auth-web/tests/unit/components/EntityManagement.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -102,8 +102,8 @@ describe('Entity Management Component', () => {
const removeBusinessPayload: RemoveBusinessPayload = getPayLoad('CTMP')
wrapper.vm.showConfirmationOptionsModal(removeBusinessPayload)
expect(mockedNrMethod).toHaveBeenCalled()
expect(wrapper.vm.primaryBtnText).toBe('Delete Continuation In')
expect(wrapper.vm.secondaryBtnText).toBe('Keep Continuation In')
expect(wrapper.vm.primaryBtnText).toBe('Delete Continuation In Application')
expect(wrapper.vm.secondaryBtnText).toBe('Keep Continuation In Application')
})
it('calls the Passcode reset open modal with correct buttons', async () => {
const removeBusinessPayload: RemoveBusinessPayload = getPayLoad('CP')
Expand Down Expand Up @@ -325,7 +325,7 @@ describe('Entity Management Component', () => {

it('Should set the correct values when populateContinuationInModalValues() is called', () => {
wrapper.vm.populateContinuationInModalValues()
expect(wrapper.vm.primaryBtnText).toBe('Delete Continuation In')
expect(wrapper.vm.secondaryBtnText).toBe('Keep Continuation In')
expect(wrapper.vm.primaryBtnText).toBe('Delete Continuation In Application')
expect(wrapper.vm.secondaryBtnText).toBe('Keep Continuation In Application')
})
})

0 comments on commit 7cb918f

Please sign in to comment.