Я новичок в jasmine и jquery/javascript, поэтому не уверен, что я делаю неправильно здесь. Не могли бы вы мне помочь?.Jasmine jQuery test mouse введите
Кажется, что он не может найти элемент DOM и не может выполнить ожидаемое действие правильно.
describe('ClickFunctions', function() {
beforeEach(function() {
jasmine.getFixtures().fixturesPath = 'src/test/js/fixtures';
loadFixtures('Click.html');
});
it('should change the css on mouseenter of step-header',function() {
var step = $('#Step_1');
step.trigger('mouseenter');
expect(step).toHaveCss({
'background-color': '#D9EDF7'
})
});
});