angularjs - Jasmine unit tests -
hi new jasmine.
can body suggest write test case code in angularjs
$('#issuedatespan').click(function(event) { event.preventdefault(); $('#datetimepickerissue').data('datetimepicker').show(); });
if understood correctly, want tests datetimepicker displayed.
have tried like:
describe('visibility', function() { it('datetimepicker displayed', function() { expect(element(by.id('datetimepickerissue').is(':visible')).tobe(true); }); });
or
describe('visibility', function() { it('datetimepicker displayed', function() { expect($('#datetimepicker').is(':visible')).tobe(true); }); });
Comments
Post a Comment