diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2023-04-09 09:15:16 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2023-04-09 09:15:16 +0300 |
commit | 41fa6dc809eb4f93af83459c8f92632f8a380754 (patch) | |
tree | 52eacab52cf974c1826b3ecaa8f4d389a7be138d /spec/frontend/behaviors | |
parent | 88dd3a634817fc93d13eda78fa6aab7dfe42cbab (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/frontend/behaviors')
-rw-r--r-- | spec/frontend/behaviors/quick_submit_spec.js | 5 | ||||
-rw-r--r-- | spec/frontend/behaviors/requires_input_spec.js | 5 | ||||
-rw-r--r-- | spec/frontend/behaviors/shortcuts/shortcuts_issuable_spec.js | 7 |
3 files changed, 9 insertions, 8 deletions
diff --git a/spec/frontend/behaviors/quick_submit_spec.js b/spec/frontend/behaviors/quick_submit_spec.js index 317c671cd2b..8de05f7ac30 100644 --- a/spec/frontend/behaviors/quick_submit_spec.js +++ b/spec/frontend/behaviors/quick_submit_spec.js @@ -1,5 +1,6 @@ import $ from 'jquery'; -import { loadHTMLFixture, resetHTMLFixture } from 'helpers/fixtures'; +import htmlSnippetsShow from 'test_fixtures/snippets/show.html'; +import { setHTMLFixture, resetHTMLFixture } from 'helpers/fixtures'; import '~/behaviors/quick_submit'; describe('Quick Submit behavior', () => { @@ -8,7 +9,7 @@ describe('Quick Submit behavior', () => { const keydownEvent = (options = { keyCode: 13, metaKey: true }) => $.Event('keydown', options); beforeEach(() => { - loadHTMLFixture('snippets/show.html'); + setHTMLFixture(htmlSnippetsShow); testContext = {}; diff --git a/spec/frontend/behaviors/requires_input_spec.js b/spec/frontend/behaviors/requires_input_spec.js index f2f68f17d1c..68fa980216a 100644 --- a/spec/frontend/behaviors/requires_input_spec.js +++ b/spec/frontend/behaviors/requires_input_spec.js @@ -1,12 +1,13 @@ import $ from 'jquery'; -import { loadHTMLFixture, resetHTMLFixture } from 'helpers/fixtures'; +import htmlNewBranch from 'test_fixtures/branches/new_branch.html'; +import { setHTMLFixture, resetHTMLFixture } from 'helpers/fixtures'; import '~/behaviors/requires_input'; describe('requiresInput', () => { let submitButton; beforeEach(() => { - loadHTMLFixture('branches/new_branch.html'); + setHTMLFixture(htmlNewBranch); submitButton = $('button[type="submit"]'); }); diff --git a/spec/frontend/behaviors/shortcuts/shortcuts_issuable_spec.js b/spec/frontend/behaviors/shortcuts/shortcuts_issuable_spec.js index e6e587ff44b..ae7f5416c0c 100644 --- a/spec/frontend/behaviors/shortcuts/shortcuts_issuable_spec.js +++ b/spec/frontend/behaviors/shortcuts/shortcuts_issuable_spec.js @@ -1,5 +1,6 @@ import $ from 'jquery'; -import { loadHTMLFixture, resetHTMLFixture } from 'helpers/fixtures'; +import htmlSnippetsShow from 'test_fixtures/snippets/show.html'; +import { setHTMLFixture, resetHTMLFixture } from 'helpers/fixtures'; import waitForPromises from 'helpers/wait_for_promises'; import initCopyAsGFM, { CopyAsGFM } from '~/behaviors/markdown/copy_as_gfm'; import ShortcutsIssuable from '~/behaviors/shortcuts/shortcuts_issuable'; @@ -11,8 +12,6 @@ jest.mock('~/lib/utils/common_utils', () => ({ })); describe('ShortcutsIssuable', () => { - const snippetShowFixtureName = 'snippets/show.html'; - beforeAll(() => { initCopyAsGFM(); @@ -24,7 +23,7 @@ describe('ShortcutsIssuable', () => { const FORM_SELECTOR = '.js-main-target-form .js-vue-comment-form'; beforeEach(() => { - loadHTMLFixture(snippetShowFixtureName); + setHTMLFixture(htmlSnippetsShow); $('body').append( `<div class="js-main-target-form"> <textarea class="js-vue-comment-form"></textarea> |