-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
21790 - Filing history template and item headers (#18)
* 21790 - adding filng templates bases. * 21790 - some style updates. * 21790 - eslint fixes. * 21790 - test fixes. * 21790 - pr changes. * 21790 - updating tests and some after PR changes stuff.
- Loading branch information
Showing
48 changed files
with
1,443 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,13 @@ | ||
import { allFilings } from '../../../fixtures/filings/allFilings' | ||
|
||
context('Filings history section', () => { | ||
it('Verifies filing history is displayed, and it shows data', () => { | ||
cy.visitBusinessDashFor('businessInfo/ben/active.json', undefined, false, undefined, allFilings) | ||
|
||
cy.get('[data-cy="filingHistoryItem-header"]').should('have.length', allFilings.length) | ||
|
||
cy.get('[data-cy="filingHistoryItem-header"]').each((header, index) => { | ||
cy.wrap(header).should('contain.text', allFilings[index].displayName) | ||
}) | ||
}) | ||
}) |
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,26 @@ | ||
export const addressChange = { | ||
availableOnPaperOnly: false, | ||
businessIdentifier: 'CP1002605', | ||
commentsCount: 0, | ||
commentsLink: | ||
'https://legal-api-dev.apps.silver.devops.gov.bc.ca/api/v2/businesses/CP1002605/filings/149681/comments', | ||
data: { | ||
applicationDate: '2024-07-02T07:00:00+00:00', | ||
legalFilings: [ | ||
'changeOfAddress' | ||
] | ||
}, | ||
displayLedger: true, | ||
displayName: 'Address Change', | ||
documentsLink: | ||
'https://legal-api-dev.apps.silver.devops.gov.bc.ca/api/v2/businesses/CP1002605/filings/149681/documents', | ||
effectiveDate: 'Tue, 02 Jul 2024 16:30:56 GMT', | ||
filingId: 149681, | ||
filingLink: 'https://legal-api-dev.apps.silver.devops.gov.bc.ca/api/v2/businesses/CP1002605/filings/149681', | ||
isFutureEffective: false, | ||
name: 'changeOfAddress', | ||
paymentStatusCode: 'COMPLETED', | ||
status: 'COMPLETED', | ||
submittedDate: 'Tue, 02 Jul 2024 16:30:56 GMT', | ||
submitter: 'Registry Staff' | ||
} |
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,19 @@ | ||
import { ApiResponseFilingI } from '../../../src/interfaces/filing-i' | ||
import { addressChange } from './addressChange/completed' | ||
import { annualReport } from './annualReport/completed' | ||
import { directorChange } from './directorChange/directorChange' | ||
import { administrativeDissolution } from './dissolution/administrativeDissolution' | ||
import { bcGeneralPartnershipRegistration } from './bcGeneralPartnershipRegistration/bcGeneralPartnershipRegistration' | ||
import { changeOfRegistrationApplication } from './changeOfRegistrationApplication/changeOfRegistrationApplication' | ||
import { incorporationApplication } from './incoporationApplication/incorporationApplication' | ||
|
||
export const allFilings: ApiResponseFilingI[] = | ||
[ | ||
addressChange, | ||
annualReport, | ||
directorChange, | ||
administrativeDissolution, | ||
bcGeneralPartnershipRegistration, | ||
changeOfRegistrationApplication, | ||
incorporationApplication | ||
] |
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,31 @@ | ||
export const annualReport = { | ||
availableOnPaperOnly: false, | ||
businessIdentifier: 'BC0814603', | ||
commentsCount: 0, | ||
commentsLink: | ||
'https://legal-api-dev.apps.silver.devops.gov.bc.ca/api/v2/businesses/BC0814603/filings/144620/comments', | ||
data: { | ||
annualReport: { | ||
annualGeneralMeetingDate: null, | ||
annualReportDate: '2011-01-25', | ||
annualReportFilingYear: 2011 | ||
}, | ||
applicationDate: '2011-01-25', | ||
legalFilings: [ | ||
'annualReport' | ||
] | ||
}, | ||
displayLedger: true, | ||
displayName: 'Annual Report (2011)', | ||
documentsLink: | ||
'https://legal-api-dev.apps.silver.devops.gov.bc.ca/api/v2/businesses/BC0814603/filings/144620/documents', | ||
effectiveDate: 'Mon, 24 Apr 2023 05:40:24 GMT', | ||
filingId: 144620, | ||
filingLink: 'https://legal-api-dev.apps.silver.devops.gov.bc.ca/api/v2/businesses/BC0814603/filings/144620', | ||
isFutureEffective: false, | ||
name: 'annualReport', | ||
paymentStatusCode: 'COMPLETED', | ||
status: 'COMPLETED', | ||
submittedDate: 'Mon, 24 Apr 2023 05:40:24 GMT', | ||
submitter: 'Registry Staff' | ||
} |
31 changes: 31 additions & 0 deletions
31
...ess/fixtures/filings/bcGeneralPartnershipRegistration/bcGeneralPartnershipRegistration.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
export const bcGeneralPartnershipRegistration = | ||
{ | ||
availableOnPaperOnly: false, | ||
businessIdentifier: 'FM1060265', | ||
commentsCount: 0, | ||
commentsLink: | ||
'https://legal-api-dev.apps.silver.devops.gov.bc.ca/api/v2/businesses/FM1060265/filings/147287/comments', | ||
data: { | ||
applicationDate: '2023-11-28T23:55:58.822929+00:00', | ||
legalFilings: [ | ||
'registration' | ||
], | ||
registration: { | ||
legalName: "BTR'S GENERAL PARTNERSHIP", | ||
nrNumber: 'NR 0474544' | ||
} | ||
}, | ||
displayLedger: true, | ||
displayName: 'BC General Partnership Registration', | ||
documentsLink: | ||
'https://legal-api-dev.apps.silver.devops.gov.bc.ca/api/v2/businesses/FM1060265/filings/147287/documents', | ||
effectiveDate: 'Tue, 28 Nov 2023 23:56:00 GMT', | ||
filingId: 147287, | ||
filingLink: 'https://legal-api-dev.apps.silver.devops.gov.bc.ca/api/v2/businesses/FM1060265/filings/147287', | ||
isFutureEffective: false, | ||
name: 'registration', | ||
paymentStatusCode: 'APPROVED', | ||
status: 'COMPLETED', | ||
submittedDate: 'Tue, 28 Nov 2023 23:55:58 GMT', | ||
submitter: 'BCREG2 Liang FORTY' | ||
} |
28 changes: 28 additions & 0 deletions
28
cypress/fixtures/filings/changeOfRegistrationApplication/changeOfRegistrationApplication.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
export const changeOfRegistrationApplication = | ||
{ | ||
availableOnPaperOnly: false, | ||
businessIdentifier: 'FM1060265', | ||
commentsCount: 0, | ||
commentsLink: | ||
'https://legal-api-dev.apps.silver.devops.gov.bc.ca/api/v2/businesses/FM1060265/filings/147691/comments', | ||
data: { | ||
applicationDate: '2024-01-13T00:17:17.937213+00:00', | ||
changeOfRegistration: {}, | ||
legalFilings: [ | ||
'changeOfRegistration' | ||
] | ||
}, | ||
displayLedger: true, | ||
displayName: 'Change of Registration Application', | ||
documentsLink: | ||
'https://legal-api-dev.apps.silver.devops.gov.bc.ca/api/v2/businesses/FM1060265/filings/147691/documents', | ||
effectiveDate: 'Sat, 13 Jan 2024 00:17:18 GMT', | ||
filingId: 147691, | ||
filingLink: 'https://legal-api-dev.apps.silver.devops.gov.bc.ca/api/v2/businesses/FM1060265/filings/147691', | ||
isFutureEffective: false, | ||
name: 'changeOfRegistration', | ||
paymentStatusCode: 'COMPLETED', | ||
status: 'COMPLETED', | ||
submittedDate: 'Sat, 13 Jan 2024 00:17:17 GMT', | ||
submitter: 'BCREG2 Ayisha FIFTY' | ||
} |
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,26 @@ | ||
export const directorChange = { | ||
availableOnPaperOnly: false, | ||
businessIdentifier: 'CP1002605', | ||
commentsCount: 0, | ||
commentsLink: | ||
'https://legal-api-dev.apps.silver.devops.gov.bc.ca/api/v2/businesses/CP1002605/filings/150006/comments', | ||
data: { | ||
applicationDate: '2024-07-11T07:00:00+00:00', | ||
legalFilings: [ | ||
'changeOfDirectors' | ||
] | ||
}, | ||
displayLedger: true, | ||
displayName: 'Director Change', | ||
documentsLink: | ||
'https://legal-api-dev.apps.silver.devops.gov.bc.ca/api/v2/businesses/CP1002605/filings/150006/documents', | ||
effectiveDate: 'Thu, 11 Jul 2024 07:00:00 GMT', | ||
filingId: 150006, | ||
filingLink: 'https://legal-api-dev.apps.silver.devops.gov.bc.ca/api/v2/businesses/CP1002605/filings/150006', | ||
isFutureEffective: false, | ||
name: 'changeOfDirectors', | ||
paymentStatusCode: 'COMPLETED', | ||
status: 'COMPLETED', | ||
submittedDate: 'Thu, 11 Jul 2024 18:02:53 GMT', | ||
submitter: 'BCREG2 Ayisha FIFTY' | ||
} |
36 changes: 36 additions & 0 deletions
36
cypress/fixtures/filings/dissolution/administrativeDissolution.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
export const administrativeDissolution = { | ||
availableOnPaperOnly: false, | ||
businessIdentifier: 'BC0814603', | ||
commentsCount: 0, | ||
commentsLink: | ||
'https://legal-api-dev.apps.silver.devops.gov.bc.ca/api/v2/businesses/BC0814603/filings/144622/comments', | ||
data: { | ||
applicationDate: '2023-04-24T05:55:43.070891+00:00', | ||
dissolution: { | ||
dissolutionDate: '2023-04-24', | ||
dissolutionType: 'administrative' | ||
}, | ||
legalFilings: [ | ||
'dissolution' | ||
], | ||
order: { | ||
effectOfOrder: 'planOfArrangement', | ||
fileNumber: '234234234234', | ||
orderDetails: 'asasdasd' | ||
} | ||
}, | ||
displayLedger: true, | ||
displayName: 'Administrative Dissolution', | ||
documentsLink: | ||
'https://legal-api-dev.apps.silver.devops.gov.bc.ca/api/v2/businesses/BC0814603/filings/144622/documents', | ||
effectiveDate: 'Mon, 24 Apr 2023 05:55:43 GMT', | ||
filingId: 144622, | ||
filingLink: 'https://legal-api-dev.apps.silver.devops.gov.bc.ca/api/v2/businesses/BC0814603/filings/144622', | ||
filingSubType: 'administrative', | ||
isFutureEffective: false, | ||
name: 'dissolution', | ||
paymentStatusCode: 'COMPLETED', | ||
status: 'COMPLETED', | ||
submittedDate: 'Mon, 24 Apr 2023 05:55:43 GMT', | ||
submitter: 'Registry Staff' | ||
} |
30 changes: 30 additions & 0 deletions
30
cypress/fixtures/filings/incoporationApplication/incorporationApplication.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
export const incorporationApplication = { | ||
availableOnPaperOnly: false, | ||
businessIdentifier: 'CP1002605', | ||
commentsCount: 0, | ||
commentsLink: | ||
'https://legal-api-dev.apps.silver.devops.gov.bc.ca/api/v2/businesses/CP1002605/filings/147296/comments', | ||
data: { | ||
applicationDate: '2023-11-29T00:11:46.078781+00:00', | ||
incorporationApplication: { | ||
legalName: "BTR'S COOP", | ||
nrNumber: 'NR 8181266' | ||
}, | ||
legalFilings: [ | ||
'incorporationApplication' | ||
] | ||
}, | ||
displayLedger: true, | ||
displayName: 'Incorporation Application', | ||
documentsLink: | ||
'https://legal-api-dev.apps.silver.devops.gov.bc.ca/api/v2/businesses/CP1002605/filings/147296/documents', | ||
effectiveDate: 'Wed, 29 Nov 2023 00:11:46 GMT', | ||
filingId: 147296, | ||
filingLink: 'https://legal-api-dev.apps.silver.devops.gov.bc.ca/api/v2/businesses/CP1002605/filings/147296', | ||
isFutureEffective: false, | ||
name: 'incorporationApplication', | ||
paymentStatusCode: 'APPROVED', | ||
status: 'COMPLETED', | ||
submittedDate: 'Wed, 29 Nov 2023 00:11:46 GMT', | ||
submitter: 'BCREG2 Liang FORTY' | ||
} |
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
Oops, something went wrong.