-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Custodian of Records accordion for historical businesses * clean-up and minor i18n tweak
- Loading branch information
1 parent
1dc3f50
commit e7176eb
Showing
12 changed files
with
116 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
context('Business dashboard -> Custodian of Records components', () => { | ||
it('Custodian accordion is rendered for historical business', () => { | ||
// when parties contain a person with 'Custodian' role and the business is historical | ||
cy.visitBusinessDash('BC0871427', 'BEN', true) | ||
cy.get('[data-cy="accordion_custodian"]').should('exist') | ||
cy.get('[data-cy="accordion_custodian"]').children().eq(0).children().should('have.length', 1) | ||
|
||
// non-historical business with no custodian of records | ||
cy.visitBusinessDash('BC0871427', 'BEN', false) | ||
cy.get('[data-cy="accordion_custodian"]').should('not.exist') | ||
}) | ||
}) |
2 changes: 1 addition & 1 deletion
2
cypress/e2e/components/parties.cy.ts → ...ents/directors-partners-proprietors.cy.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
{ | ||
"deliveryAddress": { | ||
"addressCity": "Burnaby", | ||
"addressCountry": "CA", | ||
"addressRegion": "BC", | ||
"deliveryInstructions": "", | ||
"id": 2902982, | ||
"postalCode": "V5E 3X4", | ||
"streetAddress": "7861 Welsley Dr", | ||
"streetAddressAdditional": "" | ||
}, | ||
"mailingAddress": { | ||
"addressCity": "Burnaby", | ||
"addressCountry": "CA", | ||
"addressRegion": "BC", | ||
"deliveryInstructions": "", | ||
"id": 2902983, | ||
"postalCode": "V5E 3X4", | ||
"streetAddress": "7861 Welsley Dr", | ||
"streetAddressAdditional": "" | ||
}, | ||
"officer": { | ||
"email": "vishnupreddy0422@gmail.com", | ||
"firstName": "VISH", | ||
"id": 584259, | ||
"lastName": "P", | ||
"partyType": "person" | ||
}, | ||
"roles": [ | ||
{ | ||
"appointmentDate": "2024-06-19", | ||
"cessationDate": null, | ||
"roleType": "Custodian" | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters