new fields in general settings
and test for password switcher
This commit is contained in:
@ -16,5 +16,12 @@ describe('<GeneralSettings/>', function () {
|
||||
wrapper.unmount();
|
||||
});
|
||||
|
||||
|
||||
it('test password hide/show switchbutton', function () {
|
||||
const wrapper = shallow(<GeneralSettings/>);
|
||||
|
||||
expect(wrapper.find("FormGroup").findWhere(it => it.props().controlId === "passwordfield")).toHaveLength(0);
|
||||
wrapper.find("FormCheck").findWhere(it => it.props().label === "Enable Password support").simulate("change");
|
||||
|
||||
expect(wrapper.find("FormGroup").findWhere(it => it.props().controlId === "passwordfield")).toHaveLength(1);
|
||||
});
|
||||
});
|
||||
|
Reference in New Issue
Block a user