|
1 | 1 | // Jest Snapshot v1, https://goo.gl/fbAQLP
|
2 | 2 |
|
| 3 | +exports[`AutoComplete should be able to render content before and after the matching data 1`] = ` |
| 4 | +<ul |
| 5 | + class="rmd-list rmd-listbox rmd-listbox--temporary rmd-transition--scale-y-enter rmd-transition--scale-y-enter-active" |
| 6 | + id="autocomplete-listbox" |
| 7 | + role="listbox" |
| 8 | + style="left: 0px; top: 0px; width: 0px; position: fixed; transform-origin: 50% 0;" |
| 9 | +> |
| 10 | + <div> |
| 11 | + Before Results |
| 12 | + </div> |
| 13 | + <li |
| 14 | + class="rmd-list-item rmd-list-item--clickable rmd-option" |
| 15 | + id="autocomplete-listbox-result-1" |
| 16 | + role="option" |
| 17 | + > |
| 18 | + <span |
| 19 | + class="rmd-list-item__text" |
| 20 | + > |
| 21 | + Alabama |
| 22 | + </span> |
| 23 | + </li> |
| 24 | + <li |
| 25 | + class="rmd-list-item rmd-list-item--clickable rmd-option" |
| 26 | + id="autocomplete-listbox-result-2" |
| 27 | + role="option" |
| 28 | + > |
| 29 | + <span |
| 30 | + class="rmd-list-item__text" |
| 31 | + > |
| 32 | + Alaska |
| 33 | + </span> |
| 34 | + </li> |
| 35 | + <li |
| 36 | + class="rmd-list-item rmd-list-item--clickable rmd-option" |
| 37 | + id="autocomplete-listbox-result-3" |
| 38 | + role="option" |
| 39 | + > |
| 40 | + <span |
| 41 | + class="rmd-list-item__text" |
| 42 | + > |
| 43 | + American Samoa |
| 44 | + </span> |
| 45 | + </li> |
| 46 | + <li |
| 47 | + class="rmd-list-item rmd-list-item--clickable rmd-option" |
| 48 | + id="autocomplete-listbox-result-4" |
| 49 | + role="option" |
| 50 | + > |
| 51 | + <span |
| 52 | + class="rmd-list-item__text" |
| 53 | + > |
| 54 | + Arizona |
| 55 | + </span> |
| 56 | + </li> |
| 57 | + <li |
| 58 | + class="rmd-list-item rmd-list-item--clickable rmd-option" |
| 59 | + id="autocomplete-listbox-result-5" |
| 60 | + role="option" |
| 61 | + > |
| 62 | + <span |
| 63 | + class="rmd-list-item__text" |
| 64 | + > |
| 65 | + Arkansas |
| 66 | + </span> |
| 67 | + </li> |
| 68 | + <div> |
| 69 | + After Results |
| 70 | + </div> |
| 71 | +</ul> |
| 72 | +`; |
| 73 | + |
| 74 | +exports[`AutoComplete should be able to render content before and after the matching data 2`] = ` |
| 75 | +<ul |
| 76 | + class="rmd-list rmd-listbox rmd-listbox--temporary rmd-transition--scale-y-enter rmd-transition--scale-y-enter-active" |
| 77 | + id="autocomplete-listbox" |
| 78 | + role="listbox" |
| 79 | + style="left: 0px; top: 0px; width: 0px; position: fixed; transform-origin: 50% 0;" |
| 80 | +> |
| 81 | + <div> |
| 82 | + Before Results |
| 83 | + </div> |
| 84 | + <li |
| 85 | + class="rmd-list-item rmd-list-item--clickable rmd-option" |
| 86 | + id="autocomplete-listbox-result-1" |
| 87 | + role="option" |
| 88 | + > |
| 89 | + <span |
| 90 | + class="rmd-list-item__text" |
| 91 | + > |
| 92 | + Alabama |
| 93 | + </span> |
| 94 | + </li> |
| 95 | + <li |
| 96 | + class="rmd-list-item rmd-list-item--clickable rmd-option" |
| 97 | + id="autocomplete-listbox-result-2" |
| 98 | + role="option" |
| 99 | + > |
| 100 | + <span |
| 101 | + class="rmd-list-item__text" |
| 102 | + > |
| 103 | + Alaska |
| 104 | + </span> |
| 105 | + </li> |
| 106 | + <li |
| 107 | + class="rmd-list-item rmd-list-item--clickable rmd-option" |
| 108 | + id="autocomplete-listbox-result-3" |
| 109 | + role="option" |
| 110 | + > |
| 111 | + <span |
| 112 | + class="rmd-list-item__text" |
| 113 | + > |
| 114 | + American Samoa |
| 115 | + </span> |
| 116 | + </li> |
| 117 | + <li |
| 118 | + class="rmd-list-item rmd-list-item--clickable rmd-option" |
| 119 | + id="autocomplete-listbox-result-4" |
| 120 | + role="option" |
| 121 | + > |
| 122 | + <span |
| 123 | + class="rmd-list-item__text" |
| 124 | + > |
| 125 | + Arizona |
| 126 | + </span> |
| 127 | + </li> |
| 128 | + <li |
| 129 | + class="rmd-list-item rmd-list-item--clickable rmd-option" |
| 130 | + id="autocomplete-listbox-result-5" |
| 131 | + role="option" |
| 132 | + > |
| 133 | + <span |
| 134 | + class="rmd-list-item__text" |
| 135 | + > |
| 136 | + Arkansas |
| 137 | + </span> |
| 138 | + </li> |
| 139 | + <div> |
| 140 | + After Results |
| 141 | + </div> |
| 142 | +</ul> |
| 143 | +`; |
| 144 | + |
| 145 | +exports[`AutoComplete should be able to render content before and after the matching data 3`] = ` |
| 146 | +<ul |
| 147 | + class="rmd-list rmd-listbox rmd-listbox--temporary rmd-transition--scale-y-enter rmd-transition--scale-y-enter-active" |
| 148 | + id="autocomplete-listbox" |
| 149 | + role="listbox" |
| 150 | + style="left: 0px; top: 0px; width: 0px; position: fixed; transform-origin: 50% 0;" |
| 151 | +> |
| 152 | + <div> |
| 153 | + Before Results |
| 154 | + </div> |
| 155 | + <li |
| 156 | + class="rmd-list-item rmd-list-item--clickable rmd-option" |
| 157 | + id="autocomplete-listbox-result-1" |
| 158 | + role="option" |
| 159 | + > |
| 160 | + <span |
| 161 | + class="rmd-list-item__text" |
| 162 | + > |
| 163 | + Alabama |
| 164 | + </span> |
| 165 | + </li> |
| 166 | + <li |
| 167 | + class="rmd-list-item rmd-list-item--clickable rmd-option" |
| 168 | + id="autocomplete-listbox-result-2" |
| 169 | + role="option" |
| 170 | + > |
| 171 | + <span |
| 172 | + class="rmd-list-item__text" |
| 173 | + > |
| 174 | + Alaska |
| 175 | + </span> |
| 176 | + </li> |
| 177 | + <li |
| 178 | + class="rmd-list-item rmd-list-item--clickable rmd-option" |
| 179 | + id="autocomplete-listbox-result-3" |
| 180 | + role="option" |
| 181 | + > |
| 182 | + <span |
| 183 | + class="rmd-list-item__text" |
| 184 | + > |
| 185 | + American Samoa |
| 186 | + </span> |
| 187 | + </li> |
| 188 | + <li |
| 189 | + class="rmd-list-item rmd-list-item--clickable rmd-option" |
| 190 | + id="autocomplete-listbox-result-4" |
| 191 | + role="option" |
| 192 | + > |
| 193 | + <span |
| 194 | + class="rmd-list-item__text" |
| 195 | + > |
| 196 | + Arizona |
| 197 | + </span> |
| 198 | + </li> |
| 199 | + <li |
| 200 | + class="rmd-list-item rmd-list-item--clickable rmd-option" |
| 201 | + id="autocomplete-listbox-result-5" |
| 202 | + role="option" |
| 203 | + > |
| 204 | + <span |
| 205 | + class="rmd-list-item__text" |
| 206 | + > |
| 207 | + Arkansas |
| 208 | + </span> |
| 209 | + </li> |
| 210 | + <div> |
| 211 | + After Results |
| 212 | + </div> |
| 213 | +</ul> |
| 214 | +`; |
| 215 | + |
3 | 216 | exports[`AutoComplete should handle a normal filter flow 1`] = `
|
4 | 217 | <div>
|
5 | 218 | <div
|
|
0 commit comments