diff options
Diffstat (limited to 'spec')
-rw-r--r-- | spec/javascripts/feature_highlight/feature_highlight_spec.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/javascripts/feature_highlight/feature_highlight_spec.js b/spec/javascripts/feature_highlight/feature_highlight_spec.js index 6e1b0429ab7..87bc5163f3c 100644 --- a/spec/javascripts/feature_highlight/feature_highlight_spec.js +++ b/spec/javascripts/feature_highlight/feature_highlight_spec.js @@ -53,7 +53,7 @@ describe('feature highlight', () => { it('setup inserted.bs.popover', () => { $(selector).trigger('mouseenter'); - const popoverId = $(selector).attr('aria-describedby'); + const popoverId = document.querySelector(selector).getAttribute('aria-describedby'); const spyEvent = spyOnEvent(`#${popoverId} .dismiss-feature-highlight`, 'click'); $(`#${popoverId} .dismiss-feature-highlight`).click(); @@ -75,9 +75,9 @@ describe('feature highlight', () => { }); it('displays popover', () => { - expect($(selector).attr('aria-describedby')).toBeFalsy(); + expect(document.querySelector(selector).getAttribute('aria-describedby')).toBeFalsy(); $(selector).trigger('mouseenter'); - expect($(selector).attr('aria-describedby')).toBeTruthy(); + expect(document.querySelector(selector).getAttribute('aria-describedby')).toBeTruthy(); }); }); |