Skip to content

Commit

Permalink
unit tests fixing 2
Browse files Browse the repository at this point in the history
  • Loading branch information
tshyun24 committed Nov 20, 2023
1 parent 354e507 commit d64594a
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions tests/unit/RegAddEditOrgPerson.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -427,6 +427,12 @@ describe('Registration Add/Edit Org/Person component', () => {
store.stateModel.tombstone.keycloakRoles = ['staff']
const wrapper = createComponent(validProprietorOrg, 0, null)

// verify input values
const emailInput = wrapper.find(`${emailAddressSelector} input`)
// FUTURE: verify mailing address and delivery address
expect((emailInput.element as HTMLInputElement).value)
.toEqual(validProprietorOrg.officer.email)

// verify buttons
expect(wrapper.find(buttonDoneSelector).attributes('disabled')).toBeUndefined()
expect(wrapper.find(buttonRemoveSelector).attributes('disabled')).toBeUndefined()
Expand Down Expand Up @@ -548,6 +554,12 @@ describe('Registration Add/Edit Org/Person component', () => {
store.stateModel.tombstone.keycloakRoles = ['']
const wrapper = createComponent(validPartnerOrg, 0, null)

// verify input values
const emailInput = wrapper.find(`${emailAddressSelector} input`)
// FUTURE: verify mailing address and delivery address
expect((emailInput.element as HTMLInputElement).value)
.toEqual(validPartnerOrg.officer.email)

// verify input values
const emailInput = wrapper.find(`${emailAddressSelector} input`)
// FUTURE: verify mailing address and delivery address
Expand Down

0 comments on commit d64594a

Please sign in to comment.