diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2022-06-11 03:09:17 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2022-06-11 03:09:17 +0300 |
commit | aa0e3dcce3143ef4c3d8a481a216bf28ae31a3e3 (patch) | |
tree | 8a39ef76ddc367e7747e76621ee3ee072b0ea066 /spec/frontend/helpers | |
parent | 6ae4485274362bf656fae249a1409266a211d255 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/frontend/helpers')
-rw-r--r-- | spec/frontend/helpers/startup_css_helper_spec.js | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/spec/frontend/helpers/startup_css_helper_spec.js b/spec/frontend/helpers/startup_css_helper_spec.js index 05161437c22..2236b5aa261 100644 --- a/spec/frontend/helpers/startup_css_helper_spec.js +++ b/spec/frontend/helpers/startup_css_helper_spec.js @@ -59,10 +59,9 @@ describe('waitForCSSLoaded', () => { <link href="two.css" data-startupcss="loading"> `); const events = waitForCSSLoaded(mockedCallback); - document.querySelectorAll('[data-startupcss="loading"]').forEach((elem) => { - // eslint-disable-next-line no-param-reassign - elem.dataset.startupcss = 'loaded'; - }); + document + .querySelectorAll('[data-startupcss="loading"]') + .forEach((elem) => elem.setAttribute('data-startupcss', 'loaded')); document.dispatchEvent(new CustomEvent('CSSStartupLinkLoaded')); await events; |