back soft

مطالب مرتبط با «jasmine jquery dom testing» در back soft | نویسنده: استخدام کار

Jasmine jQuery testing mouse enter

Vote count: 0 I am new to jasmine and jquery / javascript so I not sure what I am doing wrong here can you please help me. It seems it don't find the DOM element and can't perform the expect correktly. 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' }) }); }); asked 31 secs agoDK1990 Let's block ads! بخوانید...

ادامه مطلب

برچسب‌های مرتبط

jasmine jquery testing | jasmine testing jquery plugins | jasmine testing jquery ajax | jasmine jquery dom testing | jasmine jquery unit testing