summaryrefslogtreecommitdiff
path: root/spec/frontend/design_management/components/list/__snapshots__/item_spec.js.snap
blob: de276bd300bd777643483962832a02d8754055af (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
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`Design management list item component when item appears in view after image is loaded renders media broken icon when image onerror triggered 1`] = `
<gl-icon-stub
  class="text-secondary"
  name="media-broken"
  size="32"
/>
`;

exports[`Design management list item component with notes renders item with multiple comments 1`] = `
<router-link-stub
  class="card gl-cursor-pointer text-plain js-design-list-item design-list-item design-list-item-new"
  to="[object Object]"
>
  <div
    class="card-body gl-p-0 gl-display-flex gl-align-items-center gl-justify-content-center gl-overflow-hidden gl-relative"
  >
    <!---->
     
    <gl-intersection-observer-stub>
      <!---->
       
      <img
        alt="test"
        class="gl-display-block gl-mx-auto gl-max-w-full mh-100 design-img"
        data-qa-filename="test"
        data-qa-selector="design_image"
        src=""
      />
    </gl-intersection-observer-stub>
  </div>
   
  <div
    class="card-footer gl-display-flex gl-w-full"
  >
    <div
      class="gl-display-flex gl-flex-direction-column str-truncated-100"
    >
      <span
        class="gl-font-weight-bold str-truncated-100"
        data-qa-selector="design_file_name"
      >
        test
      </span>
       
      <span
        class="str-truncated-100"
      >
        
        Updated 
        <timeago-stub
          cssclass=""
          time="01-01-2019"
          tooltipplacement="bottom"
        />
      </span>
    </div>
     
    <div
      class="gl-ml-auto gl-display-flex gl-align-items-center gl-text-gray-500"
    >
      <gl-icon-stub
        class="gl-ml-2"
        name="comments"
        size="16"
      />
       
      <span
        aria-label="2 comments"
        class="gl-ml-2"
      >
        
        2
      
      </span>
    </div>
  </div>
</router-link-stub>
`;

exports[`Design management list item component with notes renders item with single comment 1`] = `
<router-link-stub
  class="card gl-cursor-pointer text-plain js-design-list-item design-list-item design-list-item-new"
  to="[object Object]"
>
  <div
    class="card-body gl-p-0 gl-display-flex gl-align-items-center gl-justify-content-center gl-overflow-hidden gl-relative"
  >
    <!---->
     
    <gl-intersection-observer-stub>
      <!---->
       
      <img
        alt="test"
        class="gl-display-block gl-mx-auto gl-max-w-full mh-100 design-img"
        data-qa-filename="test"
        data-qa-selector="design_image"
        src=""
      />
    </gl-intersection-observer-stub>
  </div>
   
  <div
    class="card-footer gl-display-flex gl-w-full"
  >
    <div
      class="gl-display-flex gl-flex-direction-column str-truncated-100"
    >
      <span
        class="gl-font-weight-bold str-truncated-100"
        data-qa-selector="design_file_name"
      >
        test
      </span>
       
      <span
        class="str-truncated-100"
      >
        
        Updated 
        <timeago-stub
          cssclass=""
          time="01-01-2019"
          tooltipplacement="bottom"
        />
      </span>
    </div>
     
    <div
      class="gl-ml-auto gl-display-flex gl-align-items-center gl-text-gray-500"
    >
      <gl-icon-stub
        class="gl-ml-2"
        name="comments"
        size="16"
      />
       
      <span
        aria-label="1 comment"
        class="gl-ml-2"
      >
        
        1
      
      </span>
    </div>
  </div>
</router-link-stub>
`;