JSFiddle - React, Tailwind, and code Playground
by bpall
HTML
<label>Check me to check both: <input type="checkbox" ng-model="leader"></label><br/>
<input id="checkFollower" type="checkbox" ng-checked="leader" aria-label="Follower input">
JavaScript
it('should check both checkBoxes', function() {
expect(element(by.id('checkFollower')).getAttribute('checked')).toBeFalsy();
element(by.model('leader')).click();
expect(element(by.id('checkFollower')).getAttribute('checked')).toBeTruthy();
});