このテストを実行すると、エラーが発生し続けますExpected undefined to be true.
it('should have the right classes', function() {
// this doesnt work
expect(element.find('.exampleClass').hasClass('ng-hide')).toBe(true);
// but this works
expect(element.find('span').hasClass('ng-hide')).toBe(true);
});
jqlite を使用してid
andで要素を見つけるにはどうすればよいclass
ですか?