summaryrefslogtreecommitdiff
path: root/spec/frontend/authentication/two_factor_auth/components/__snapshots__/manage_two_factor_form_spec.js.snap
blob: 3fe0e570a54db6e2469e4862b1f86824fe76b1f3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`ManageTwoFactorForm Disable button renders the component correctly 1`] = `
VueWrapper {
  "_emitted": Object {},
  "_emittedByOrder": Array [],
  "isFunctionalComponent": undefined,
}
`;

exports[`ManageTwoFactorForm Disable button renders the component correctly 2`] = `
<form
  action="#"
  class="gl-display-inline-block"
  method="post"
>
  <input
    data-testid="test-2fa-method-field"
    name="_method"
    type="hidden"
  />
   
  <input
    name="authenticity_token"
    type="hidden"
  />
   
  <div
    class="form-group gl-form-group"
    id="__BVID__15"
    role="group"
  >
    <label
      class="d-block col-form-label"
      for="current-password"
      id="__BVID__15__BV_label_"
    >
      Current password
    </label>
    <div
      class="bv-no-focus-ring"
    >
      <input
        aria-required="true"
        class="gl-form-input form-control"
        data-qa-selector="current_password_field"
        id="current-password"
        name="current_password"
        required="required"
        type="password"
      />
      <!---->
      <!---->
      <!---->
    </div>
  </div>
   
  <button
    class="btn btn-danger gl-mr-3 gl-display-inline-block btn-danger btn-md gl-button"
    data-confirm="Are you sure? This will invalidate your registered applications and U2F devices."
    data-form-action="2fa_auth_path"
    data-form-method="2fa_auth_method"
    data-testid="test-2fa-disable-button"
    type="submit"
  >
    <!---->
     
    <!---->
      
    <span
      class="gl-button-text"
    >
      
    Disable two-factor authentication
  
    </span>
  </button>
   
  <button
    class="btn gl-display-inline-block btn-default btn-md gl-button"
    data-form-action="2fa_codes_path"
    data-form-method="2fa_codes_method"
    data-testid="test-2fa-regenerate-codes-button"
    type="submit"
  >
    <!---->
     
    <!---->
      
    <span
      class="gl-button-text"
    >
      
    Regenerate recovery codes
  
    </span>
  </button>
</form>
`;