You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Write the following test to check if your change is correct:
it('should allow to change the default value on select',async()=>{constuser=userEvent.setup();render(<FormSelectoptions={['first','second','third']}defaultValue="third"/>);awaituser.selectOptions(screen.getByRole('combobox'),'first');constoption: any=screen.getByRole('option',{name: 'first'});expect(option.selected).toBe(true);});
If I pass the default value when I change the value from the drop-down list it stays on the default value:
Write the following test to check if your change is correct:
Follow this to create the new branch:
git checkout release/1.0.0 git pull git checkout -b 'fix/select-default'
The text was updated successfully, but these errors were encountered: