Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2022-09-13 15:12:50 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2022-09-13 15:12:50 +0300
commit37a739daec0d7021b2af6ad03c60d37ac3461d88 (patch)
treee9621e1d5b8c59a2f2768deb3f153e1e5fb01437 /spec/frontend/authentication
parentbfd344aeac677543c2a2f623fd103d4cf0f4e247 (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/frontend/authentication')
-rw-r--r--spec/frontend/authentication/two_factor_auth/components/recovery_codes_spec.js4
-rw-r--r--spec/frontend/authentication/two_factor_auth/index_spec.js2
2 files changed, 3 insertions, 3 deletions
diff --git a/spec/frontend/authentication/two_factor_auth/components/recovery_codes_spec.js b/spec/frontend/authentication/two_factor_auth/components/recovery_codes_spec.js
index 2dcc537809f..beb9efd00ed 100644
--- a/spec/frontend/authentication/two_factor_auth/components/recovery_codes_spec.js
+++ b/spec/frontend/authentication/two_factor_auth/components/recovery_codes_spec.js
@@ -31,9 +31,9 @@ describe('RecoveryCodes', () => {
};
const queryByText = (text, options) => within(wrapper.element).queryByText(text, options);
- const findAlert = () => wrapper.find(GlAlert);
+ const findAlert = () => wrapper.findComponent(GlAlert);
const findRecoveryCodes = () => wrapper.findByTestId('recovery-codes');
- const findCopyButton = () => wrapper.find(ClipboardButton);
+ const findCopyButton = () => wrapper.findComponent(ClipboardButton);
const findButtonByText = (text) =>
wrapper.findAll(GlButton).wrappers.find((buttonWrapper) => buttonWrapper.text() === text);
const findDownloadButton = () => findButtonByText('Download codes');
diff --git a/spec/frontend/authentication/two_factor_auth/index_spec.js b/spec/frontend/authentication/two_factor_auth/index_spec.js
index f9a6b2df662..427159bacd9 100644
--- a/spec/frontend/authentication/two_factor_auth/index_spec.js
+++ b/spec/frontend/authentication/two_factor_auth/index_spec.js
@@ -10,7 +10,7 @@ describe('initRecoveryCodes', () => {
let el;
let wrapper;
- const findRecoveryCodesComponent = () => wrapper.find(RecoveryCodes);
+ const findRecoveryCodesComponent = () => wrapper.findComponent(RecoveryCodes);
beforeEach(() => {
el = document.createElement('div');