File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -1691,10 +1691,10 @@ test('setValue on checkbox', async () => {
1691
1691
const wrapper = mount (Component )
1692
1692
1693
1693
await wrapper .find (' input[type="checkbox"]' ).setValue (true )
1694
- expect(wrapper.find(' div' )).toBe(true )
1694
+ expect(wrapper.find(' div' ).exists() ).toBe(true )
1695
1695
1696
1696
await wrapper .find (' input[type="checkbox"]' ).setValue (false )
1697
- expect(wrapper.find(' div' )).toBe(false )
1697
+ expect(wrapper.find(' div' ).exists() ).toBe(false )
1698
1698
})
1699
1699
1700
1700
test (' setValue on input text' , async () => {
Original file line number Diff line number Diff line change @@ -1683,10 +1683,10 @@ test('setValue sur une checkbox', async () => {
1683
1683
const wrapper = mount(Component);
1684
1684
1685
1685
await wrapper.find('input[type="checkbox"]').setValue(true);
1686
- expect(wrapper.find('div')).toBe(true);
1686
+ expect(wrapper.find('div').exists() ).toBe(true);
1687
1687
1688
1688
await wrapper.find('input[type="checkbox"]').setValue(false);
1689
- expect(wrapper.find('div')).toBe(false);
1689
+ expect(wrapper.find('div').exists() ).toBe(false);
1690
1690
});
1691
1691
1692
1692
test('setValue sur un champ texte', async () => {
You can’t perform that action at this time.
0 commit comments