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

23554 - Fixed the Restoration Application Fee Summary Bug #744

Merged
merged 2 commits into from
Oct 9, 2024

Conversation

ArwenQin
Copy link
Collaborator

@ArwenQin ArwenQin commented Oct 8, 2024

Issue #: /bcgov/entity#23554

Description of changes:

  • Fixed the Restoration Application page Fee Summary Bug, now showing $0 initially, until the user selects a restoration type

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

@ArwenQin ArwenQin self-assigned this Oct 8, 2024
@ArwenQin
Copy link
Collaborator Author

ArwenQin commented Oct 8, 2024

/gcbrun

@ArwenQin
Copy link
Collaborator Author

ArwenQin commented Oct 8, 2024

Before:
image

After:
image

@bcregistry-sre
Copy link
Collaborator

Temporary Url for review: https://business-create-dev--pr-744-2ef0g708.web.app

@ArwenQin
Copy link
Collaborator Author

ArwenQin commented Oct 8, 2024

Copy link
Collaborator

@severinbeauvais severinbeauvais left a comment

Choose a reason for hiding this comment

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

Looks great!

Do you have time left in this ticket's estimate (3) to write a unit test(s) to verify this exact scenario?

@ArwenQin
Copy link
Collaborator Author

ArwenQin commented Oct 8, 2024

Looks great!

Do you have time left in this ticket's estimate (3) to write a unit test(s) to verify this exact scenario?

Yes, sure, let me add some unit tests to verify it.

Copy link
Collaborator

@JazzarKarim JazzarKarim left a comment

Choose a reason for hiding this comment

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

Nice 👍

Signed-off-by: Qin <[email protected]>
@ArwenQin
Copy link
Collaborator Author

ArwenQin commented Oct 8, 2024

/gcbrun

@bcregistry-sre
Copy link
Collaborator

Temporary Url for review: https://business-create-dev--pr-744-2ef0g708.web.app

it('displays the fee summary amount properly for restoration application', async () => {
const feeSummary = wrapper.findComponent(SbcFeeSummary)
// when restoration type is initially not chosen, the fee summary is called with empty []
expect(feeSummary.props('filingData')).toEqual([])
Copy link
Collaborator

Choose a reason for hiding this comment

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

Checking the component's props, nice!

Copy link
Collaborator

@severinbeauvais severinbeauvais left a comment

Choose a reason for hiding this comment

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

Looks good to me. Go ahead and merge this.

@ArwenQin ArwenQin merged commit 01d87ca into bcgov:main Oct 9, 2024
5 checks passed
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