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

item_spec.js.snap « __snapshots__ « list « components « design_management « frontend « spec - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: a05b3baecd3c388259bda481f8b39a1bb1b428bb (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
// 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`] = `
<a
  class="card design-list-item gl-cursor-pointer gl-mb-0 js-design-list-item text-plain"
>
  <div
    class="card-body gl-align-items-center gl-display-flex gl-justify-content-center gl-overflow-hidden gl-p-0 gl-relative gl-rounded-top-base"
  >
    <gl-intersection-observer-stub
      class="gl-flex-grow-1"
      data-qa-filename="test"
      data-testid="design-image"
    >
      <img
        alt="test"
        class="design-img gl-display-block gl-max-h-full gl-max-w-full gl-mx-auto gl-w-auto"
        data-testid="design-img-1"
        src="null"
      />
    </gl-intersection-observer-stub>
  </div>
  <div
    class="card-footer gl-bg-white gl-display-flex gl-px-4 gl-py-3 gl-w-full"
  >
    <div
      class="gl-display-flex gl-flex-direction-column str-truncated-100"
      data-testid="design-file-name"
    >
      <span
        class="gl-font-weight-semibold str-truncated-100"
        data-testid="design-img-filename-1"
        title="test"
      >
        test
      </span>
      <span
        class="str-truncated-100"
      >
        Updated
        <timeago-stub
          cssclass=""
          datetimeformat="DATE_WITH_TIME_FORMAT"
          time="01-01-2019"
          tooltipplacement="bottom"
        />
      </span>
    </div>
    <div
      class="gl-align-items-center gl-display-flex gl-ml-auto 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>
</a>
`;

exports[`Design management list item component with notes renders item with single comment 1`] = `
<a
  class="card design-list-item gl-cursor-pointer gl-mb-0 js-design-list-item text-plain"
>
  <div
    class="card-body gl-align-items-center gl-display-flex gl-justify-content-center gl-overflow-hidden gl-p-0 gl-relative gl-rounded-top-base"
  >
    <gl-intersection-observer-stub
      class="gl-flex-grow-1"
      data-qa-filename="test"
      data-testid="design-image"
    >
      <img
        alt="test"
        class="design-img gl-display-block gl-max-h-full gl-max-w-full gl-mx-auto gl-w-auto"
        data-testid="design-img-1"
        src="null"
      />
    </gl-intersection-observer-stub>
  </div>
  <div
    class="card-footer gl-bg-white gl-display-flex gl-px-4 gl-py-3 gl-w-full"
  >
    <div
      class="gl-display-flex gl-flex-direction-column str-truncated-100"
      data-testid="design-file-name"
    >
      <span
        class="gl-font-weight-semibold str-truncated-100"
        data-testid="design-img-filename-1"
        title="test"
      >
        test
      </span>
      <span
        class="str-truncated-100"
      >
        Updated
        <timeago-stub
          cssclass=""
          datetimeformat="DATE_WITH_TIME_FORMAT"
          time="01-01-2019"
          tooltipplacement="bottom"
        />
      </span>
    </div>
    <div
      class="gl-align-items-center gl-display-flex gl-ml-auto 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>
</a>
`;