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

Edit state of SI entry #95

Merged
merged 6 commits into from
Jan 9, 2024
Merged

Edit state of SI entry #95

merged 6 commits into from
Jan 9, 2024

Conversation

patrickpeinanw
Copy link
Collaborator

*Issue:*bcgov/entity#18726

Description of changes:

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

@patrickpeinanw patrickpeinanw self-assigned this Dec 27, 2023
Copy link

codecov bot commented Dec 27, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

❗ No coverage uploaded for pull request base (main@fc22a42). Click here to learn what that means.

Additional details and impacted files
@@           Coverage Diff           @@
##             main      #95   +/-   ##
=======================================
  Coverage        ?   79.19%           
=======================================
  Files           ?       28           
  Lines           ?     1668           
  Branches        ?       93           
=======================================
  Hits            ?     1321           
  Misses          ?      258           
  Partials        ?       89           
Flag Coverage Δ
btr-ui 79.19% <0.00%> (?)

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

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@patrickpeinanw
Copy link
Collaborator Author

/gcbrun

@bcregistry-sre
Copy link
Collaborator

Temporary Url for review: https://bcregistry-btr-dev--pr-95-sq27aeed.web.app

@patrickpeinanw
Copy link
Collaborator Author

/gcbrun

@bcregistry-sre
Copy link
Collaborator

Temporary Url for review: https://bcregistry-btr-dev--pr-95-sq27aeed.web.app

@patrickpeinanw
Copy link
Collaborator Author

/gcbrun

@bcregistry-sre
Copy link
Collaborator

Temporary Url for review: https://bcregistry-btr-dev--pr-95-sq27aeed.web.app

Copy link
Collaborator

@kialj876 kialj876 left a comment

Choose a reason for hiding this comment

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

Very good work! I have some comments that I'll add into a new ticket as you're away on vacation for a while

bcgov/entity#19169

@@ -142,7 +142,7 @@
id="addNewPersonBirthdate"
class="mt-3"
:max-date="new Date()"
:placeholder="$t('placeholders.dateSelect.birthdate')"
:placeholder="significantIndividual.profile.birthDate || $t('placeholders.dateSelect.birthdate')"
Copy link
Collaborator

Choose a reason for hiding this comment

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

this should set the initialDate prop with the existing birthdate value instead of the placeholder

const emits = defineEmits<{
add: [value: SignificantIndividualI],
cancel: [value: any],
update: [value: any],
Copy link
Collaborator

Choose a reason for hiding this comment

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

I think you can add typing to this

}

cy.get('[data-cy="individualsSummaryTable"]').get('td')
.should('contain.text', 'No significant individuals added yet')
Copy link
Collaborator

@kialj876 kialj876 Jan 8, 2024

Choose a reason for hiding this comment

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

this will only be true if the business had 2 existing individuals (which is why it fails in the CI). This should dynamically calculate how many existing individuals are there and verify there is at least 1.

the tests above and below fail for a similar reasons (starting existing individuals are different than the test expects)

FUTURE: we should have a specific test business for these tests that doesn't get interfered with

}

cy.get('[data-cy="individualsSummaryTable"]').get('td')
.should('contain.text', 'No significant individuals added yet')
Copy link
Collaborator

Choose a reason for hiding this comment

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

Same thing here

@@ -22,10 +22,10 @@

<script setup lang="ts">
const emit = defineEmits<{(e: 'update:modelValue', value: string | undefined): void }>()
defineProps({
modelValue: { type: String, default: undefined },
const props = defineProps({
Copy link
Collaborator

Choose a reason for hiding this comment

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

can the emit above still be undefined ?

@kialj876 kialj876 merged commit c43a61f into bcgov:main Jan 9, 2024
16 of 17 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