1
1
/* @web /test-runner snapshot v1 */
2
2
export const snapshots = { } ;
3
3
4
- snapshots [
5
- 'compas-scl-list when list still needs to be loaded looks like the latest snapshot'
6
- ] = `<compas-loading>
4
+ snapshots [ "compas-scl-list when list still needs to be loaded looks like the latest snapshot" ] =
5
+ `<compas-loading>
7
6
</compas-loading>
8
7
` ;
9
8
/* end snapshot compas-scl-list when list still needs to be loaded looks like the latest snapshot */
10
9
11
- snapshots [
12
- 'compas-scl-list when there are no items found in CoMPAS looks like the latest snapshot'
13
- ] = `<mwc-list>
10
+ snapshots [ "compas-scl-list when there are no items found in CoMPAS looks like the latest snapshot" ] =
11
+ `<mwc-list>
14
12
<mwc-list-item
15
13
aria-disabled="false"
16
14
mwc-list-item=""
@@ -24,18 +22,21 @@ snapshots[
24
22
` ;
25
23
/* end snapshot compas-scl-list when there are no items found in CoMPAS looks like the latest snapshot */
26
24
27
- snapshots [
28
- 'compas-scl-list when there items without labels looks like the latest snapshot'
29
- ] = `<div class="filters">
25
+ snapshots [ "compas-scl-list when there are items without labels looks like the latest snapshot" ] =
26
+ `<div class="filters">
30
27
<span>
31
28
[compas.sclFilter]
32
29
</span>
33
30
<oscd-filter-button
34
31
disabled=""
35
- icon="label"
36
32
id="labelsFilter"
37
33
multi="true"
38
34
>
35
+ <span slot="icon">
36
+ <mwc-icon>
37
+ label_off
38
+ </mwc-icon>
39
+ </span>
39
40
</oscd-filter-button>
40
41
</div>
41
42
<filtered-list>
@@ -55,19 +56,135 @@ snapshots[
55
56
</mwc-list-item>
56
57
</filtered-list>
57
58
` ;
58
- /* end snapshot compas-scl-list when there items without labels looks like the latest snapshot */
59
+ /* end snapshot compas-scl-list when there are items without labels looks like the latest snapshot */
59
60
60
- snapshots [
61
- 'compas-scl-list when there items with labels looks like the latest snapshot'
62
- ] = `<div class="filters">
61
+ snapshots [ "compas-scl-list when there are items with labels when filtering on labels only 1 item is shown" ] =
62
+ `<div class="filters">
63
63
<span>
64
64
[compas.sclFilter]
65
65
</span>
66
66
<oscd-filter-button
67
- icon="label"
68
67
id="labelsFilter"
69
68
multi="true"
70
69
>
70
+ <span slot="icon">
71
+ <mwc-icon>
72
+ label
73
+ </mwc-icon>
74
+ </span>
75
+ <mwc-check-list-item
76
+ aria-disabled="false"
77
+ graphic="control"
78
+ mwc-list-item=""
79
+ selected=""
80
+ tabindex="-1"
81
+ value="Amsterdam"
82
+ >
83
+ Amsterdam
84
+ </mwc-check-list-item>
85
+ <mwc-check-list-item
86
+ aria-disabled="false"
87
+ graphic="control"
88
+ mwc-list-item=""
89
+ tabindex="-1"
90
+ value="Netherlands"
91
+ >
92
+ Netherlands
93
+ </mwc-check-list-item>
94
+ <mwc-check-list-item
95
+ aria-disabled="false"
96
+ graphic="control"
97
+ mwc-list-item=""
98
+ tabindex="0"
99
+ value="Utrecht"
100
+ >
101
+ Utrecht
102
+ </mwc-check-list-item>
103
+ </oscd-filter-button>
104
+ </div>
105
+ <filtered-list>
106
+ <mwc-list-item
107
+ aria-disabled="false"
108
+ mwc-list-item=""
109
+ tabindex="0"
110
+ >
111
+ Station-Amsterdam-0001 (1.3.0)
112
+ </mwc-list-item>
113
+ </filtered-list>
114
+ ` ;
115
+ /* end snapshot compas-scl-list when there are items with labels when filtering on labels only 1 item is shown */
116
+
117
+ snapshots [ "compas-scl-list when there are items with labels when filtering on labels and all items are hidden" ] =
118
+ `<div class="filters">
119
+ <span>
120
+ [compas.sclFilter]
121
+ </span>
122
+ <oscd-filter-button
123
+ id="labelsFilter"
124
+ multi="true"
125
+ >
126
+ <span slot="icon">
127
+ <mwc-icon>
128
+ label
129
+ </mwc-icon>
130
+ </span>
131
+ <mwc-check-list-item
132
+ aria-disabled="false"
133
+ graphic="control"
134
+ mwc-list-item=""
135
+ tabindex="-1"
136
+ value="Amsterdam"
137
+ >
138
+ Amsterdam
139
+ </mwc-check-list-item>
140
+ <mwc-check-list-item
141
+ aria-disabled="false"
142
+ graphic="control"
143
+ mwc-list-item=""
144
+ tabindex="-1"
145
+ value="Netherlands"
146
+ >
147
+ Netherlands
148
+ </mwc-check-list-item>
149
+ <mwc-check-list-item
150
+ aria-disabled="false"
151
+ graphic="control"
152
+ mwc-list-item=""
153
+ tabindex="0"
154
+ value="Utrecht"
155
+ >
156
+ Utrecht
157
+ </mwc-check-list-item>
158
+ </oscd-filter-button>
159
+ </div>
160
+ <mwc-list>
161
+ <mwc-list-item
162
+ aria-disabled="false"
163
+ mwc-list-item=""
164
+ tabindex="0"
165
+ >
166
+ <i>
167
+ [compas.noFilteredScls]
168
+ </i>
169
+ </mwc-list-item>
170
+ </mwc-list>
171
+ ` ;
172
+ /* end snapshot compas-scl-list when there are items with labels when filtering on labels and all items are hidden */
173
+
174
+ snapshots [ "compas-scl-list when there are items with labels looks like the latest snapshot" ] =
175
+ `<div class="filters">
176
+ <span>
177
+ [compas.sclFilter]
178
+ </span>
179
+ <oscd-filter-button
180
+ id="labelsFilter"
181
+ multi="true"
182
+ >
183
+ <span slot="icon">
184
+ <mwc-icon>
185
+ label_off
186
+ </mwc-icon>
187
+ </span>
71
188
<mwc-check-list-item
72
189
aria-disabled="false"
73
190
graphic="control"
@@ -117,4 +234,5 @@ snapshots[
117
234
</mwc-list-item>
118
235
</filtered-list>
119
236
` ;
120
- /* end snapshot compas-scl-list when there items with labels looks like the latest snapshot */
237
+ /* end snapshot compas-scl-list when there are items with labels looks like the latest snapshot */
238
+
0 commit comments