diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2023-05-19 15:07:15 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2023-05-19 15:07:15 +0300 |
commit | ba55ca9bc4bf2c85d2d78fcb11552ad130151110 (patch) | |
tree | 8a205191235a5b2b29e5eaacf9224c73052dddc9 /spec/frontend/tabs | |
parent | ee3d5f16e3aa642944b121645764e33604a31307 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/frontend/tabs')
-rw-r--r-- | spec/frontend/tabs/index_spec.js | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/spec/frontend/tabs/index_spec.js b/spec/frontend/tabs/index_spec.js index 1d61d38a488..7c127fd7124 100644 --- a/spec/frontend/tabs/index_spec.js +++ b/spec/frontend/tabs/index_spec.js @@ -1,12 +1,11 @@ +import htmlTabs from 'test_fixtures/tabs/tabs.html'; import { GlTabsBehavior, TAB_SHOWN_EVENT, HISTORY_TYPE_HASH } from '~/tabs'; import { ACTIVE_PANEL_CLASS, ACTIVE_TAB_CLASSES } from '~/tabs/constants'; import { getLocationHash } from '~/lib/utils/url_utility'; import { NO_SCROLL_TO_HASH_CLASS } from '~/lib/utils/common_utils'; -import { getFixture, setHTMLFixture, resetHTMLFixture } from 'helpers/fixtures'; +import { setHTMLFixture, resetHTMLFixture } from 'helpers/fixtures'; import setWindowLocation from 'helpers/set_window_location_helper'; -const tabsFixture = getFixture('tabs/tabs.html'); - global.CSS = { escape: (val) => val, }; @@ -107,7 +106,7 @@ describe('GlTabsBehavior', () => { }); beforeEach(() => { - setHTMLFixture(tabsFixture); + setHTMLFixture(htmlTabs); const tabsEl = findByTestId('tabs'); tabShownEventSpy = jest.fn(); @@ -247,7 +246,7 @@ describe('GlTabsBehavior', () => { describe('using aria-controls instead of href to link tabs to panels', () => { beforeEach(() => { - setHTMLFixture(tabsFixture); + setHTMLFixture(htmlTabs); const tabsEl = findByTestId('tabs'); ['foo', 'bar', 'qux'].forEach((name) => { @@ -279,7 +278,7 @@ describe('GlTabsBehavior', () => { let tabsEl; beforeEach(() => { - setHTMLFixture(tabsFixture); + setHTMLFixture(htmlTabs); tabsEl = findByTestId('tabs'); }); |