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:
Diffstat (limited to 'spec/frontend/ci/runner/components/registration/registration_token_spec.js')
-rw-r--r--spec/frontend/ci/runner/components/registration/registration_token_spec.js11
1 files changed, 8 insertions, 3 deletions
diff --git a/spec/frontend/ci/runner/components/registration/registration_token_spec.js b/spec/frontend/ci/runner/components/registration/registration_token_spec.js
index fd3896d5500..eccfe43b47f 100644
--- a/spec/frontend/ci/runner/components/registration/registration_token_spec.js
+++ b/spec/frontend/ci/runner/components/registration/registration_token_spec.js
@@ -38,10 +38,15 @@ describe('RegistrationToken', () => {
);
});
+ it('Renders readonly input', () => {
+ createComponent();
+
+ expect(findInputCopyToggleVisibility().props('readonly')).toBe(true);
+ });
+
// Component integration test to ensure secure masking
- it('Displays masked value by default', () => {
+ it('Displays masked value as password input by default', () => {
const mockToken = '0123456789';
- const maskToken = '**********';
createComponent({
props: {
@@ -50,7 +55,7 @@ describe('RegistrationToken', () => {
mountFn: mountExtended,
});
- expect(wrapper.find('input').element.value).toBe(maskToken);
+ expect(wrapper.find('input').element.type).toBe('password');
});
describe('When the copy to clipboard button is clicked', () => {