Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Alignment Updates and Exemption Review Unit Tests #1586

Merged

Conversation

cameron-eyds
Copy link
Collaborator

Issue #: /bcgov/entity#17420

Description of changes:

  • Alignment updates for MH Registrations
  • Minor style updates
  • Clean up instances of global style class 'selected-radio' where not applicable
  • Unit tests for Exemptions Review

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of the PPR license (Apache 2.0).

@cameron-eyds cameron-eyds self-assigned this Oct 16, 2023
@codecov
Copy link

codecov bot commented Oct 16, 2023

Codecov Report

Merging #1586 (9996afe) into main (9255e77) will increase coverage by 4.92%.
Report is 291 commits behind head on main.
The diff coverage is n/a.

@@            Coverage Diff             @@
##             main    #1586      +/-   ##
==========================================
+ Coverage   72.35%   77.27%   +4.92%     
==========================================
  Files         307      379      +72     
  Lines       12767     6976    -5791     
  Branches     2630     1108    -1522     
==========================================
- Hits         9237     5391    -3846     
+ Misses       3518     1553    -1965     
- Partials       12       32      +20     
Flag Coverage Δ
pprui 77.27% <ø> (+4.92%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files Coverage Δ
ppr-ui/src/App.vue 100.00% <ø> (+56.78%) ⬆️
ppr-ui/src/components/collateral/Collateral.vue 100.00% <ø> (+10.97%) ⬆️
...nents/collateral/generalCollateral/GenColAmend.vue 100.00% <ø> (+18.00%) ⬆️
...onents/collateral/generalCollateral/GenColEdit.vue 100.00% <ø> (+15.15%) ⬆️
...nts/collateral/generalCollateral/GenColSummary.vue 100.00% <ø> (+8.00%) ⬆️
...collateral/generalCollateral/GeneralCollateral.vue 100.00% <ø> (+6.66%) ⬆️
...ts/collateral/vehicleCollateral/EditCollateral.vue 100.00% <ø> (+22.58%) ⬆️
...collateral/vehicleCollateral/VehicleCollateral.vue 100.00% <ø> (+19.41%) ⬆️
...cleCollateral/factories/useCollateralValidation.ts 71.42% <ø> (ø)
...llateral/vehicleCollateral/factories/useVehicle.ts 70.14% <ø> (-0.91%) ⬇️
... and 41 more

... and 274 files with indirect coverage changes

@cameron-eyds
Copy link
Collaborator Author

/gcbrun

@bcregistry-sre
Copy link
Collaborator

Temporary Url for review: https://bcregistry-assets-dev--pr-1586-8vgcs4br.web.app

Copy link
Collaborator

@doug-lovett doug-lovett left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

Copy link
Collaborator

@dimak1 dimak1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice!

expect(wrapper.findComponent(FolioOrReferenceNumber).exists()).toBe(true)
})

it('renders the ConfirmCompletion section', () => {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What's the reason for having them in separate tests? So we can add more assertions as we go on?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yea, it's just long-hand i guess. Keep it simple.


export function setupMockQualifiedSupplier (): void {
setupMockUser()
store.setAuthRoles([])
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Probably need to specify that this is Lawyer QS.
In my QS tests, I did add [AuthRoles.MHR_TRANSFER_SALE] roles, with a [ProductCode.MANUFACTURER] product codes.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure, can update.
Although the Roles no longer have a part to play, for the UI at least. We should just be relying on the product code.

@cameron-eyds
Copy link
Collaborator Author

/gcbrun

@bcregistry-sre
Copy link
Collaborator

Temporary Url for review: https://bcregistry-assets-dev--pr-1586-8vgcs4br.web.app

@cameron-eyds cameron-eyds merged commit 7643b9e into bcgov:main Oct 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants