Skip to content

Commit

Permalink
update unit tests
Browse files Browse the repository at this point in the history
Signed-off-by: Qin <Arwen.Qin@gov.bc.ca>
  • Loading branch information
ArwenQin committed Oct 10, 2024
1 parent fc228b4 commit be16a93
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions tests/unit/ContinuationIn.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -144,8 +144,7 @@ describe('Continuation In - in Pending list', () => {
expect(wrapper.find('.item-header-title').text()).toContain('BC Limited Company Continuation Application')
expect(wrapper.find('.expand-btn').text()).toBe('Hide Details') // open by default
expect(wrapper.find('.item-header-subtitle').text()).toContain('PENDING STAFF REVIEW')
expect(wrapper.find('.item-header-subtitle').text()).toContain('PAID')
expect(wrapper.find('.item-header-subtitle').text()).toContain('(filed by Joe Smith on')
expect(wrapper.find('.item-header-subtitle').text()).toContain('Submitted on')
expect(wrapper.find('.item-header-subtitle').text()).toContain('Jul 23, 2024')

// verify expansion panel content
Expand Down Expand Up @@ -185,13 +184,11 @@ describe('Continuation In - in Pending list', () => {
expect(wrapper.find('.item-header-title').text()).toContain('BC Limited Company Continuation Application')
expect(wrapper.find('.expand-btn').text()).toBe('Hide Details') // open by default
expect(wrapper.find('.item-header-subtitle').text()).toContain('PENDING STAFF REVIEW')
expect(wrapper.find('.item-header-subtitle').text()).toContain('PAID')
expect(wrapper.find('.item-header-subtitle').text()).toContain('(filed by Joe Smith on')
expect(wrapper.find('.item-header-subtitle').text()).toContain('Submitted on')
expect(wrapper.find('.item-header-subtitle').text()).toContain('Jul 23, 2024')

// verify expansion panel content
expect(wrapper.find('h4').text()).toBe('Future Effective Incorporation')
expect(wrapper.find('.v-expansion-panel-content').text()).toContain('This BC Limited Company Continuation Application is paid.')
expect(wrapper.find('.v-expansion-panel-content').text()).toContain('BC Registries will review your Continuation Authorization documents')
expect(wrapper.find('.v-expansion-panel-content').text()).toContain('and contact you with the results within 2 business days.')
expect(wrapper.find('.v-expansion-panel-content').text()).toContain('If approved, the incorporation date and time for this company will be')
Expand Down Expand Up @@ -231,13 +228,11 @@ describe('Continuation In - in Pending list', () => {
expect(wrapper.find('.item-header-title').text()).toContain('BC Limited Company Continuation Application')
expect(wrapper.find('.expand-btn').text()).toBe('Hide Details') // open by default
expect(wrapper.find('.item-header-subtitle').text()).toContain('PENDING STAFF REVIEW')
expect(wrapper.find('.item-header-subtitle').text()).toContain('PAID')
expect(wrapper.find('.item-header-subtitle').text()).toContain('(filed by Joe Smith on')
expect(wrapper.find('.item-header-subtitle').text()).toContain('Submitted')
expect(wrapper.find('.item-header-subtitle').text()).toContain('Jul 23, 2024')

// verify expansion panel content
expect(wrapper.find('h4').text()).toBe('Future Effective Incorporation')
expect(wrapper.find('.v-expansion-panel-content').text()).toContain('This BC Limited Company Continuation Application is paid.')
expect(wrapper.find('.v-expansion-panel-content').text()).toContain('BC Registries will review your Continuation Authorization documents')
expect(wrapper.find('.v-expansion-panel-content').text()).toContain('and contact you with the results within 2 business days.')
expect(wrapper.find('.v-expansion-panel-content').text()).toContain('If approved, the incorporation date and time for this company will be recorded as')
Expand Down

0 comments on commit be16a93

Please sign in to comment.