diff options
author | Clement Ho <ClemMakesApps@gmail.com> | 2018-02-20 12:31:28 -0600 |
---|---|---|
committer | Clement Ho <ClemMakesApps@gmail.com> | 2018-02-20 12:31:28 -0600 |
commit | fbcf72b53cc87308e5402f1a11dfbbab24ebce00 (patch) | |
tree | 13d4f59af16354a51bcdc50ceac5dca367061e11 | |
parent | 2d483340fd8bacbba93eeeb35ca47bee92b437f9 (diff) | |
download | gitlab-ce-jquery3.tar.gz |
Improve feature highlight specjquery3
-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(); }); }); |