summaryrefslogtreecommitdiff
path: root/spec/frontend/vue_shared/components/registry/__snapshots__/code_instruction_spec.js.snap
blob: e8d76991b9053d0260872a35e54033e417b61ea6 (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
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`Package code instruction multiline to match the snapshot 1`] = `
<div>
  <label
    for="instruction-input_1"
  >
    foo_label
  </label>
   
  <div>
    <pre
      class="gl-font-monospace"
      data-testid="multiline-instruction"
    >
      this is some
multiline text
    </pre>
  </div>
</div>
`;

exports[`Package code instruction single line to match the default snapshot 1`] = `
<div>
  <label
    for="instruction-input_1"
  >
    foo_label
  </label>
   
  <div
    class="gl-mb-3"
  >
    <div
      class="input-group gl-mb-3"
    >
      <input
        class="form-control gl-font-monospace"
        data-testid="instruction-input"
        id="instruction-input_1"
        readonly="readonly"
        type="text"
      />
       
      <span
        class="input-group-append"
        data-testid="instruction-button"
      >
        <button
          aria-label="Copy npm install command"
          aria-live="polite"
          class="btn input-group-text btn-default btn-md gl-button btn-default-secondary btn-icon"
          data-clipboard-handle-tooltip="false"
          data-clipboard-text="npm i @my-package"
          id="clipboard-button-1"
          title="Copy npm install command"
          type="button"
        >
          <!---->
           
          <svg
            aria-hidden="true"
            class="gl-button-icon gl-icon s16"
            data-testid="copy-to-clipboard-icon"
            role="img"
          >
            <use
              href="#copy-to-clipboard"
            />
          </svg>
            
          <!---->
        </button>
      </span>
    </div>
  </div>
</div>
`;