diff --git a/dev/tests/js/jasmine/tests/lib/mage/backend/suggest.test.js b/dev/tests/js/jasmine/tests/lib/mage/backend/suggest.test.js index 84880e6af72c5..9cbad5841f9ec 100644 --- a/dev/tests/js/jasmine/tests/lib/mage/backend/suggest.test.js +++ b/dev/tests/js/jasmine/tests/lib/mage/backend/suggest.test.js @@ -101,8 +101,8 @@ define([ expect(suggestInstance.dropdown.hasClass('wrapper-test')).toBe(true); expect(suggestInstance.dropdown.is(':hidden')).toBe(true); - expect(suggestInstance.element.closest('.test-input-wrapper').size()).toBeGreaterThan(0); - expect(suggestInstance.element.closest('.' + options.className).size()).toBeGreaterThan(0); + expect(suggestInstance.element.closest('.test-input-wrapper').length).toBeGreaterThan(0); + expect(suggestInstance.element.closest('.' + options.className).length).toBeGreaterThan(0); expect(suggestInstance.element.attr('autocomplete')).toBe('off'); options.appendMethod = 'before';