diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2023-04-28 21:26:46 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2023-04-28 21:26:46 +0300 |
commit | 5509e479900ee537980a126287c20327c41a61d6 (patch) | |
tree | 8272f06bd58b1518eca38975f95656ffc5497bd2 /spec/frontend/read_more_spec.js | |
parent | e0529f76a36026dc4bd51fbec1e5c52e7f3866e1 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/frontend/read_more_spec.js')
-rw-r--r-- | spec/frontend/read_more_spec.js | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/spec/frontend/read_more_spec.js b/spec/frontend/read_more_spec.js index e45405088b1..5f7bd32e231 100644 --- a/spec/frontend/read_more_spec.js +++ b/spec/frontend/read_more_spec.js @@ -1,9 +1,8 @@ -import { loadHTMLFixture, resetHTMLFixture, setHTMLFixture } from 'helpers/fixtures'; +import htmlProjectsOverview from 'test_fixtures/projects/overview.html'; +import { setHTMLFixture, resetHTMLFixture } from 'helpers/fixtures'; import initReadMore from '~/read_more'; describe('Read more click-to-expand functionality', () => { - const fixtureName = 'projects/overview.html'; - const findTrigger = () => document.querySelector('.js-read-more-trigger'); afterEach(() => { @@ -12,7 +11,7 @@ describe('Read more click-to-expand functionality', () => { describe('expands target element', () => { beforeEach(() => { - loadHTMLFixture(fixtureName); + setHTMLFixture(htmlProjectsOverview); }); it('adds "is-expanded" class to target element', () => { |