diff --git a/cypress/e2e/components/filings/correctionFilings.cy.ts b/cypress/e2e/components/filings/correctionFilings.cy.ts index 32bb4460..df80bace 100644 --- a/cypress/e2e/components/filings/correctionFilings.cy.ts +++ b/cypress/e2e/components/filings/correctionFilings.cy.ts @@ -1,4 +1,5 @@ import { allFilings } from '../../../fixtures/filings/allFilings' +import { administrativeDissolution } from '../../../fixtures/filings/dissolution/administrativeDissolution' import { devBCReg } from '../../../fixtures/origins' context('Correction Filings', () => { @@ -34,12 +35,15 @@ context('Correction Filings', () => { }) it("Staff shouldn't be able to file a correction against an invalid type", () => { - cy.visitBusinessDashFor('businessInfo/ben/active.json', undefined, false, false, undefined, allFilings, true) + cy.visitBusinessDashFor( + 'businessInfo/ben/active.json', undefined, false, false, undefined, [administrativeDissolution], true + ) cy.intercept('POST', '**/api/v2/businesses/**/filings', {}).as('correctionFilingsPost') cy.get('[data-cy="header.actions.dropdown"]').should('exist') - //select filing 2 instead of 0 or 1 which are correctionable - cy.get('[data-cy="header.actions.dropdown"]').eq(2).click() + + // open the dropdown for the administrative dissolution in the Filing History; correction option should be disabled + cy.get('[data-cy="header.actions.dropdown"]').first().click() cy.get('[data-cy="header.actions.dropdown"] .fileACorrection').should('have.attr', 'aria-disabled') cy.get('[data-cy="header.actions.dropdown"] .fileACorrection').invoke('attr', 'aria-disabled').should('eq', 'true') }) diff --git a/package.json b/package.json index 9e3acc77..d3b903b4 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "bcros-business-dashboard", "private": true, "type": "module", - "version": "1.0.9", + "version": "1.0.10", "scripts": { "build": "nuxt generate", "build:local": "nuxt build", diff --git a/src/components/bcros/businessDetails/Links.vue b/src/components/bcros/businessDetails/Links.vue index 60791c38..2f7be4a6 100644 --- a/src/components/bcros/businessDetails/Links.vue +++ b/src/components/bcros/businessDetails/Links.vue @@ -257,7 +257,7 @@ const contacts = getContactInfo('registries') { commentToAdd.value = '' noChangesSinceSave.value = true + emit('close') }