diff options
Diffstat (limited to 'spec/frontend/admin/users/new_spec.js')
-rw-r--r-- | spec/frontend/admin/users/new_spec.js | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/spec/frontend/admin/users/new_spec.js b/spec/frontend/admin/users/new_spec.js index 5e5763822a8..eba5c87f470 100644 --- a/spec/frontend/admin/users/new_spec.js +++ b/spec/frontend/admin/users/new_spec.js @@ -1,20 +1,19 @@ +import newWithInternalUserRegex from 'test_fixtures/admin/users/new_with_internal_user_regex.html'; import { setupInternalUserRegexHandler, ID_USER_EMAIL, ID_USER_EXTERNAL, ID_WARNING, } from '~/admin/users/new'; -import { loadHTMLFixture, resetHTMLFixture } from 'helpers/fixtures'; +import { setHTMLFixture, resetHTMLFixture } from 'helpers/fixtures'; describe('admin/users/new', () => { - const FIXTURE = 'admin/users/new_with_internal_user_regex.html'; - let elExternal; let elUserEmail; let elWarningMessage; beforeEach(() => { - loadHTMLFixture(FIXTURE); + setHTMLFixture(newWithInternalUserRegex); setupInternalUserRegexHandler(); elExternal = document.getElementById(ID_USER_EXTERNAL); |