Skip to content

Commit

Permalink
fix(e2e): fix e2e MultiRadio test with boolean
Browse files Browse the repository at this point in the history
  • Loading branch information
louptheron committed Mar 21, 2024
1 parent 9bb8487 commit 5344063
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions e2e/base/fields/MultiRadio.spec.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -75,10 +75,10 @@ Object.keys(OPTIONS_TYPES).forEach(optionType => {
outputShouldBe(options[1].value)
})

it(`Should fill and change the multiple radio with \`value={${JSON.stringify(options[2].value)}}\``, () => {
it(`Should fill and change the multiple radio with \`value={${JSON.stringify(options[1].value)}}\``, () => {
mountAndWait(
<StoryBox>
<MultiRadioStory {...commonProps} value={options[2].value} />
<MultiRadioStory {...commonProps} value={options[1].value} />
</StoryBox>
)

Expand Down Expand Up @@ -117,10 +117,10 @@ Object.keys(OPTIONS_TYPES).forEach(optionType => {
outputShouldNotBe()
})

it(`Should NOT call \`onChange(undefined)\` with \`disabled value={${JSON.stringify(options[2].value)}}\``, () => {
it(`Should NOT call \`onChange(undefined)\` with \`disabled value={${JSON.stringify(options[1].value)}}\``, () => {
mountAndWait(
<StoryBox>
<MultiRadioStory {...commonProps} disabled value={options[2].value} />
<MultiRadioStory {...commonProps} disabled value={options[1].value} />
</StoryBox>
)

Expand All @@ -138,11 +138,11 @@ Object.keys(OPTIONS_TYPES).forEach(optionType => {
})

it(`Should call \`onChange(undefined)\` with \`disabled isUndefinedWhenDisabled value={${JSON.stringify(
options[2].value
options[1].value
)}}\``, () => {
mountAndWait(
<StoryBox>
<MultiRadioStory {...commonProps} disabled isUndefinedWhenDisabled value={options[2].value} />
<MultiRadioStory {...commonProps} disabled isUndefinedWhenDisabled value={options[1].value} />
</StoryBox>
)

Expand Down

0 comments on commit 5344063

Please sign in to comment.