Update tests to reflect reality
parent
b19f5a7be9
commit
b5b6a4fd32
|
@ -62,12 +62,12 @@ describe('Wizard Progress Bar', () => {
|
|||
wrapper = setup({currentStepIndex: 2}, [true, true, false])
|
||||
})
|
||||
|
||||
it('renders two checkmark icons', () => {
|
||||
expect(wrapper.find('.checkmark')).toHaveLength(2)
|
||||
it('renders three checkmark icons', () => {
|
||||
expect(wrapper.find('.checkmark')).toHaveLength(3)
|
||||
})
|
||||
|
||||
it('renders a current step indicator icon', () => {
|
||||
expect(wrapper.find('.current')).toHaveLength(1)
|
||||
it('renders no current step indicator icons', () => {
|
||||
expect(wrapper.find('.current')).toHaveLength(0)
|
||||
})
|
||||
|
||||
it('matches snapshot', () => {
|
||||
|
|
|
@ -19,7 +19,8 @@ exports[`Wizard Progress Bar when no steps are complete matches snapshot 1`] = `
|
|||
/>
|
||||
</div>
|
||||
<ProgressConnector
|
||||
key="connectorEle1"
|
||||
key="connectorEle0"
|
||||
status="some"
|
||||
/>
|
||||
<div
|
||||
className="wizard-progress-button"
|
||||
|
@ -35,7 +36,8 @@ exports[`Wizard Progress Bar when no steps are complete matches snapshot 1`] = `
|
|||
/>
|
||||
</div>
|
||||
<ProgressConnector
|
||||
key="connectorEle2"
|
||||
key="connectorEle1"
|
||||
status="none"
|
||||
/>
|
||||
<div
|
||||
className="wizard-progress-button"
|
||||
|
@ -73,7 +75,7 @@ exports[`Wizard Progress Bar when the first two steps are completed matches snap
|
|||
/>
|
||||
</div>
|
||||
<ProgressConnector
|
||||
key="connectorEle1"
|
||||
key="connectorEle0"
|
||||
status="full"
|
||||
/>
|
||||
<div
|
||||
|
@ -90,8 +92,8 @@ exports[`Wizard Progress Bar when the first two steps are completed matches snap
|
|||
/>
|
||||
</div>
|
||||
<ProgressConnector
|
||||
key="connectorEle2"
|
||||
status="some"
|
||||
key="connectorEle1"
|
||||
status="full"
|
||||
/>
|
||||
<div
|
||||
className="wizard-progress-button"
|
||||
|
@ -103,7 +105,7 @@ exports[`Wizard Progress Bar when the first two steps are completed matches snap
|
|||
this is step3
|
||||
</div>
|
||||
<span
|
||||
className="icon circle-thick current"
|
||||
className="icon checkmark"
|
||||
/>
|
||||
</div>
|
||||
</React.Fragment>
|
||||
|
|
Loading…
Reference in New Issue