Skip to content

Commit

Permalink
feat(ChildrenWithAge): adds max values joint-responsibility & daycare
Browse files Browse the repository at this point in the history
  • Loading branch information
langz committed Nov 5, 2024
1 parent 6056c3a commit 37d6392
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -208,11 +208,7 @@ describe('ChildrenWithAge', () => {
})

it('should not accept values over 1000000 as daycare expense', async () => {
render(
<ChildrenWithAge
enableAdditionalQuestions={['joint-responsibility', 'daycare']}
/>
)
render(<ChildrenWithAge enableAdditionalQuestions={['daycare']} />)

await userEvent.click(document.querySelectorAll('button')[0])
await userEvent.click(document.querySelectorAll('button')[5])
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ exports[`ChildrenWithAge should match snapshot 1`] = `
aria-placeholder="0"
aria-required="true"
class="dnb-input__input"
id="id-re5"
id="id-rdu"
inputmode="numeric"
name="id-re5"
name="id-rdu"
type="text"
/>,
},
Expand Down Expand Up @@ -125,9 +125,9 @@ exports[`ChildrenWithAge should match snapshot 1`] = `
aria-placeholder="0"
aria-required="true"
class="dnb-input__input"
id="id-rea"
id="id-re3"
inputmode="numeric"
name="id-rea"
name="id-re3"
type="text"
/>,
},
Expand Down Expand Up @@ -331,7 +331,7 @@ exports[`ChildrenWithAge should match snapshot 1`] = `
aria-valuenow="2"
aria-valuetext="2"
class="dnb-input__input"
id="id-rdr"
id="id-rdk"
inputmode="numeric"
name="countChildren"
role="spinbutton"
Expand Down

0 comments on commit 37d6392

Please sign in to comment.