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/blob | |
parent | 6ae4485274362bf656fae249a1409266a211d255 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/frontend/blob')
-rw-r--r-- | spec/frontend/blob/components/table_contents_spec.js | 4 | ||||
-rw-r--r-- | spec/frontend/blob/viewer/index_spec.js | 6 |
2 files changed, 5 insertions, 5 deletions
diff --git a/spec/frontend/blob/components/table_contents_spec.js b/spec/frontend/blob/components/table_contents_spec.js index 2cbac809a0d..358ac31819c 100644 --- a/spec/frontend/blob/components/table_contents_spec.js +++ b/spec/frontend/blob/components/table_contents_spec.js @@ -11,7 +11,7 @@ function createComponent() { } async function setLoaded(loaded) { - document.querySelector('.blob-viewer').dataset.loaded = loaded; + document.querySelector('.blob-viewer').setAttribute('data-loaded', loaded); await nextTick(); } @@ -53,7 +53,7 @@ describe('Markdown table of contents component', () => { it('does not show dropdown when viewing non-rich content', async () => { createComponent(); - document.querySelector('.blob-viewer').dataset.type = 'simple'; + document.querySelector('.blob-viewer').setAttribute('data-type', 'simple'); await setLoaded(true); diff --git a/spec/frontend/blob/viewer/index_spec.js b/spec/frontend/blob/viewer/index_spec.js index b2559af182b..5f6baf3f63d 100644 --- a/spec/frontend/blob/viewer/index_spec.js +++ b/spec/frontend/blob/viewer/index_spec.js @@ -80,9 +80,9 @@ describe('Blob viewer', () => { return asyncClick() .then(() => asyncClick()) .then(() => { - expect(document.querySelector('.blob-viewer[data-type="simple"]').dataset.loaded).toBe( - 'true', - ); + expect( + document.querySelector('.blob-viewer[data-type="simple"]').getAttribute('data-loaded'), + ).toBe('true'); }); }); |