Skip to content
Snippets Groups Projects
Commit f57897c2 authored by Elora-V's avatar Elora-V
Browse files

test v-select ajout

parent d74445b2
No related branches found
No related tags found
No related merge requests found
......@@ -57,8 +57,14 @@ describe('ParamDropDown component', () => {
// EXPECT
const vSelect = wrapper.findComponent({ name: 'VSelect' });
expect(vSelect.props('modelValue')).toBe('Option 1');
const displayedTextBefore = wrapper.text();
expect(displayedTextBefore).toContain('Option 1');
expect(displayedTextBefore).not.toContain('Option 2');
// simulation of user action
await vSelect.setValue('Option 2');
expect(vSelect.props('modelValue')).toBe('Option 2');
const displayedTextAfter = wrapper.text();
expect(displayedTextAfter).toContain('Option 2');
expect(displayedTextAfter).not.toContain('Option 1');
});
});
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment