ant-design/components/auto-complete/__tests__/__snapshots__/demo.test.js.snap

392 lines
10 KiB
Plaintext
Raw Normal View History

// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`renders ./components/auto-complete/demo/antd.md correctly 1`] = `
<div
2017-09-15 16:14:26 +08:00
id="TriggerContainer"
>
<div
2017-09-15 16:14:26 +08:00
class="ant-select-show-search ant-select-auto-complete ant-select ant-select-combobox ant-select-enabled"
style="width:200px;height:50px;"
>
<div
2017-09-15 16:14:26 +08:00
aria-autocomplete="list"
aria-expanded="false"
aria-haspopup="true"
class="ant-select-selection
ant-select-selection--single"
role="combobox"
>
<div
2017-09-15 16:14:26 +08:00
class="ant-select-selection__rendered"
>
2017-09-15 16:14:26 +08:00
<div
class="ant-select-selection__placeholder"
style="display:block;user-select:none;-webkit-user-select:none;"
unselectable="unselectable"
>
2017-09-15 16:14:26 +08:00
input here
</div>
<ul>
<li
class="ant-select-search ant-select-search--inline"
>
2017-09-15 16:14:26 +08:00
<div
class="ant-select-search__field__wrap"
>
2017-09-15 16:14:26 +08:00
<textarea
class="ant-input ant-select-search__field"
style="height:50px;"
/>
<span
class="ant-select-search__field__mirror"
>
 
</span>
</div>
</li>
</ul>
</div>
<span
class="ant-select-arrow"
style="user-select:none;-webkit-user-select:none;"
unselectable="unselectable"
>
2017-09-15 16:14:26 +08:00
<b />
</span>
2016-11-22 14:28:05 +08:00
</div>
</div>
</div>
`;
2017-09-15 16:14:26 +08:00
exports[`renders ./components/auto-complete/demo/basic.md correctly 1`] = `
2017-03-05 19:29:33 +08:00
<div
2017-09-15 16:14:26 +08:00
id="TriggerContainer"
>
2017-03-05 19:29:33 +08:00
<div
2017-09-15 16:14:26 +08:00
class="ant-select-show-search ant-select-auto-complete ant-select ant-select-combobox ant-select-enabled"
style="width:200px;"
>
2017-03-05 19:29:33 +08:00
<div
aria-autocomplete="list"
aria-expanded="false"
aria-haspopup="true"
class="ant-select-selection
ant-select-selection--single"
role="combobox"
>
2017-03-05 19:29:33 +08:00
<div
class="ant-select-selection__rendered"
>
2017-03-05 19:29:33 +08:00
<div
class="ant-select-selection__placeholder"
style="display:block;user-select:none;-webkit-user-select:none;"
unselectable="unselectable"
>
2017-03-05 19:29:33 +08:00
input here
</div>
<ul>
<li
class="ant-select-search ant-select-search--inline"
>
2017-03-05 19:29:33 +08:00
<div
class="ant-select-search__field__wrap"
>
2017-09-15 16:14:26 +08:00
<input
class="ant-input ant-select-search__field"
type="text"
value=""
/>
2017-03-05 19:29:33 +08:00
<span
class="ant-select-search__field__mirror"
>
2017-03-10 19:22:18 +08:00
 
</span>
2017-03-05 19:29:33 +08:00
</div>
</li>
</ul>
</div>
<span
class="ant-select-arrow"
style="user-select:none;-webkit-user-select:none;"
unselectable="unselectable"
>
2017-03-05 19:29:33 +08:00
<b />
</span>
</div>
</div>
</div>
`;
2017-09-15 16:14:26 +08:00
exports[`renders ./components/auto-complete/demo/certain-category.md correctly 1`] = `
<div
2017-09-15 16:14:26 +08:00
class="certain-category-search-wrapper"
style="width:250px;"
>
<div
2017-09-15 16:14:26 +08:00
id="TriggerContainer"
>
<div
2017-09-15 16:14:26 +08:00
class="ant-select-lg ant-select-lg certain-category-search ant-select-show-search ant-select-auto-complete ant-select ant-select-combobox ant-select-enabled"
style="width:100%;"
>
<div
2017-09-15 16:14:26 +08:00
aria-autocomplete="list"
aria-expanded="false"
aria-haspopup="true"
class="ant-select-selection
ant-select-selection--single"
role="combobox"
>
2017-09-15 16:14:26 +08:00
<div
class="ant-select-selection__rendered"
>
<div
2017-09-15 16:14:26 +08:00
class="ant-select-selection__placeholder"
style="display:block;user-select:none;-webkit-user-select:none;"
unselectable="unselectable"
>
2017-09-15 16:14:26 +08:00
input here
</div>
2017-09-15 16:14:26 +08:00
<ul>
<li
class="ant-select-search ant-select-search--inline"
>
<div
class="ant-select-search__field__wrap"
>
<span
class="ant-select-search__field ant-input-affix-wrapper"
>
<input
class="ant-input"
type="text"
value=""
/>
<span
class="ant-input-suffix"
>
<i
class="anticon anticon-search certain-category-icon"
/>
</span>
</span>
<span
class="ant-select-search__field__mirror"
>
 
</span>
</div>
</li>
</ul>
</div>
<span
class="ant-select-arrow"
style="user-select:none;-webkit-user-select:none;"
unselectable="unselectable"
>
<b />
</span>
</div>
</div>
</div>
</div>
`;
2017-09-15 16:14:26 +08:00
exports[`renders ./components/auto-complete/demo/non-case-sensitive.md correctly 1`] = `
2016-11-22 14:28:05 +08:00
<div
2017-09-15 16:14:26 +08:00
id="TriggerContainer"
>
2016-11-22 14:28:05 +08:00
<div
2017-09-15 16:14:26 +08:00
class="ant-select-show-search ant-select-auto-complete ant-select ant-select-combobox ant-select-enabled"
style="width:200px;"
>
2016-11-22 14:28:05 +08:00
<div
2017-09-15 16:14:26 +08:00
aria-autocomplete="list"
aria-expanded="false"
aria-haspopup="true"
class="ant-select-selection
ant-select-selection--single"
role="combobox"
>
2016-12-03 16:23:35 +08:00
<div
2017-09-15 16:14:26 +08:00
class="ant-select-selection__rendered"
>
2017-09-15 16:14:26 +08:00
<div
class="ant-select-selection__placeholder"
style="display:block;user-select:none;-webkit-user-select:none;"
unselectable="unselectable"
>
2017-09-15 16:14:26 +08:00
try to type \`b\`
</div>
<ul>
<li
class="ant-select-search ant-select-search--inline"
>
2017-09-15 16:14:26 +08:00
<div
class="ant-select-search__field__wrap"
>
2017-09-15 16:14:26 +08:00
<input
class="ant-input ant-select-search__field"
type="text"
value=""
/>
<span
class="ant-select-search__field__mirror"
>
 
</span>
</div>
</li>
</ul>
</div>
<span
class="ant-select-arrow"
style="user-select:none;-webkit-user-select:none;"
unselectable="unselectable"
>
<b />
</span>
2016-11-22 14:28:05 +08:00
</div>
</div>
</div>
`;
2017-02-13 10:55:53 +08:00
2017-09-15 16:14:26 +08:00
exports[`renders ./components/auto-complete/demo/options.md correctly 1`] = `
2017-02-13 10:55:53 +08:00
<div
2017-09-15 16:14:26 +08:00
id="TriggerContainer"
>
2017-02-13 10:55:53 +08:00
<div
2017-09-15 16:14:26 +08:00
class="ant-select-show-search ant-select-auto-complete ant-select ant-select-combobox ant-select-enabled"
style="width:200px;"
>
2017-02-13 10:55:53 +08:00
<div
aria-autocomplete="list"
aria-expanded="false"
aria-haspopup="true"
class="ant-select-selection
ant-select-selection--single"
role="combobox"
>
2017-02-13 10:55:53 +08:00
<div
class="ant-select-selection__rendered"
>
2017-02-13 10:55:53 +08:00
<div
class="ant-select-selection__placeholder"
style="display:block;user-select:none;-webkit-user-select:none;"
unselectable="unselectable"
>
2017-02-13 10:55:53 +08:00
input here
</div>
<ul>
<li
class="ant-select-search ant-select-search--inline"
>
2017-02-13 10:55:53 +08:00
<div
class="ant-select-search__field__wrap"
>
2017-09-15 16:14:26 +08:00
<input
class="ant-input ant-select-search__field"
type="text"
value=""
/>
2017-02-13 10:55:53 +08:00
<span
class="ant-select-search__field__mirror"
>
2017-03-10 19:22:18 +08:00
 
</span>
2017-02-13 10:55:53 +08:00
</div>
</li>
</ul>
</div>
<span
class="ant-select-arrow"
style="user-select:none;-webkit-user-select:none;"
unselectable="unselectable"
>
2017-02-13 10:55:53 +08:00
<b />
</span>
</div>
</div>
</div>
`;
2017-09-15 16:14:26 +08:00
exports[`renders ./components/auto-complete/demo/uncertain-category.md correctly 1`] = `
<div
class="global-search-wrapper"
style="width:300px;"
>
<div
id="TriggerContainer"
>
<div
class="ant-select-lg ant-select-lg global-search ant-select-show-search ant-select-auto-complete ant-select ant-select-combobox ant-select-enabled"
style="width:100%;"
>
<div
aria-autocomplete="list"
aria-expanded="false"
aria-haspopup="true"
class="ant-select-selection
ant-select-selection--single"
role="combobox"
>
<div
class="ant-select-selection__rendered"
>
<div
class="ant-select-selection__placeholder"
style="display:block;user-select:none;-webkit-user-select:none;"
unselectable="unselectable"
>
input here
</div>
<ul>
<li
class="ant-select-search ant-select-search--inline"
>
<div
class="ant-select-search__field__wrap"
>
<span
class="ant-select-search__field ant-input-affix-wrapper"
>
<input
class="ant-input"
type="text"
value=""
/>
<span
class="ant-input-suffix"
>
<button
class="ant-btn search-btn ant-btn-primary ant-btn-lg"
type="button"
>
<i
class="anticon anticon-search"
/>
</button>
</span>
</span>
<span
class="ant-select-search__field__mirror"
>
 
</span>
</div>
</li>
</ul>
</div>
<span
class="ant-select-arrow"
style="user-select:none;-webkit-user-select:none;"
unselectable="unselectable"
>
<b />
</span>
</div>
</div>
</div>
</div>
`;