summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorClement Ho <ClemMakesApps@gmail.com>2018-02-20 12:31:28 -0600
committerClement Ho <ClemMakesApps@gmail.com>2018-02-20 12:31:28 -0600
commitfbcf72b53cc87308e5402f1a11dfbbab24ebce00 (patch)
tree13d4f59af16354a51bcdc50ceac5dca367061e11
parent2d483340fd8bacbba93eeeb35ca47bee92b437f9 (diff)
downloadgitlab-ce-jquery3.tar.gz
Improve feature highlight specjquery3
-rw-r--r--spec/javascripts/feature_highlight/feature_highlight_spec.js6
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();
});
});