diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2021-08-02 18:08:48 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2021-08-02 18:08:48 +0000 |
commit | fa06c9a675d9c028905276e7d0a11aacc9f8f8ac (patch) | |
tree | e84c88aa04b4a94a144cd2d3b4d1a6fd632828b7 /spec/frontend/authentication/two_factor_auth | |
parent | 6f998d352988f93f875db862353e814e95db1fe3 (diff) | |
download | gitlab-ce-fa06c9a675d9c028905276e7d0a11aacc9f8f8ac.tar.gz |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/frontend/authentication/two_factor_auth')
-rw-r--r-- | spec/frontend/authentication/two_factor_auth/index_spec.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/frontend/authentication/two_factor_auth/index_spec.js b/spec/frontend/authentication/two_factor_auth/index_spec.js index f5345139021..0ff9d60f409 100644 --- a/spec/frontend/authentication/two_factor_auth/index_spec.js +++ b/spec/frontend/authentication/two_factor_auth/index_spec.js @@ -1,5 +1,6 @@ import { getByTestId, fireEvent } from '@testing-library/dom'; import { createWrapper } from '@vue/test-utils'; +import setWindowLocation from 'helpers/set_window_location_helper'; import { initRecoveryCodes, initClose2faSuccessMessage } from '~/authentication/two_factor_auth'; import RecoveryCodes from '~/authentication/two_factor_auth/components/recovery_codes.vue'; import * as urlUtils from '~/lib/utils/url_utility'; @@ -53,8 +54,7 @@ describe('initClose2faSuccessMessage', () => { describe('when alert is closed', () => { beforeEach(() => { - delete window.location; - window.location = new URL( + setWindowLocation( 'https://localhost/-/profile/account?two_factor_auth_enabled_successfully=true', ); |