diff --git a/app/package.json b/app/package.json index cf64a90b..7c8c3d1f 100644 --- a/app/package.json +++ b/app/package.json @@ -1,6 +1,6 @@ { "name": "name-examination", - "version": "1.2.35", + "version": "1.2.36", "private": true, "scripts": { "build": "nuxt generate", diff --git a/app/store/examine/index.ts b/app/store/examine/index.ts index 50ef3c1f..2a71f999 100644 --- a/app/store/examine/index.ts +++ b/app/store/examine/index.ts @@ -483,13 +483,6 @@ export const useExamination = defineStore('examine', () => { consentDate.value = getDateFromDateTime(parsedConsentDate) ?? undefined } - // if the current state is not INPROGRESS, HOLD, or DRAFT clear any existing name record in currentNameObj - if ( - ![Status.InProgress, Status.Hold, Status.Draft].includes(nrStatus.value) - ) { - setCurrentNameChoice(undefined) - } - // we keep the original data so that if fields exist that we do not use, we don't lose that // data when we put new data clientFirstName.value = info.applicants.clientFirstName ?? undefined diff --git a/testing/cypress/pageObjects/examinePage.ts b/testing/cypress/pageObjects/examinePage.ts index 9d4dedf3..0656acd9 100644 --- a/testing/cypress/pageObjects/examinePage.ts +++ b/testing/cypress/pageObjects/examinePage.ts @@ -176,7 +176,7 @@ class ExaminePage { clickApproveButton() { cy.intercept('PATCH', '**/api/v1/requests/NR*').as('approvePatchRequest') cy.get(this.primaryApproveBtn).should('be.visible').click({ force: true }) - cy.wait('@approvePatchRequest') // TO_DO: This button is returning a 401 + cy.wait('@approvePatchRequest').its('response.statusCode').should('eq', 200) cy.wait(1000) } @@ -187,7 +187,7 @@ class ExaminePage { clickQuickApproveButton() { cy.intercept('PATCH', '**/api/v1/requests/NR*').as('quickApprovePatchRequest') cy.get(this.quickApproveBtn).should('be.visible').click({ force: true }) - cy.wait('@quickApprovePatchRequest') // TO_DO: This button is returning a 401 + cy.wait('@quickApprovePatchRequest').its('response.statusCode').should('eq', 200) cy.wait(1000) }