Skip to content

Commit

Permalink
test: test
Browse files Browse the repository at this point in the history
  • Loading branch information
郑淼 authored and 郑淼 committed Jun 30, 2022
1 parent 305b9d1 commit 2fc3ce3
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -297,6 +297,10 @@ exports[`filterable.jsx 1`] = `
</div>
</div>
</div>
</div>
<div
class="t-space-item"
>
<div
class="t-popup__reference t-tree-select t-select-input t-select-input--multiple t-select-input--empty"
>
Expand Down
3 changes: 0 additions & 3 deletions src/upload/__tests__/__snapshots__/upload.test.tsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -781,9 +781,6 @@ exports[`single-custom.jsx 1`] = `
</small>
</div>
</div>
<div
class="t-space-item"
/>
</div>
</DocumentFragment>
`;
4 changes: 2 additions & 2 deletions test/ssr/__snapshots__/ssr.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -950,7 +950,7 @@ exports[`ssr snapshot test renders ./src/tree-select/_example/base.jsx correctly

exports[`ssr snapshot test renders ./src/tree-select/_example/collapsed.jsx correctly 1`] = `"<div style=\\"gap:16px;width:300px\\" class=\\"t-space t-space-vertical\\"><div class=\\"t-space-item\\"><div class=\\"t-popup__reference t-tree-select t-tree-select--without-input t-select-input t-select-input--multiple\\"><div class=\\"t-input__wrap t-tag-input t-tag-input--break-line t-tag-input__with-suffix-icon\\" value=\\"\\"><div class=\\"t-input t-size-m t-align-left t-is-default t-input--prefix t-input--suffix\\"><div class=\\"t-input__prefix\\"><span class=\\"t-tag t-tag--default t-tag--dark t-tag--medium t-tag--square\\">广州市<svg fill=\\"none\\" viewBox=\\"0 0 16 16\\" width=\\"1em\\" height=\\"1em\\" class=\\"t-icon t-icon-close t-tag__icon-close\\"><path fill=\\"currentColor\\" d=\\"M8 8.92L11.08 12l.92-.92L8.92 8 12 4.92 11.08 4 8 7.08 4.92 4 4 4.92 7.08 8 4 11.08l.92.92L8 8.92z\\" fill-opacity=\\"0.9\\"></path></svg></span><span class=\\"t-tag t-tag--default t-tag--dark t-tag--medium t-tag--square\\">+<!-- -->1</span></div><input type=\\"text\\" placeholder=\\"\\" class=\\"t-input__inner\\" value=\\"\\"/><span class=\\"t-input__suffix t-input__suffix-icon\\"><svg class=\\"t-fake-arrow\\" width=\\"16\\" height=\\"16\\" viewBox=\\"0 0 16 16\\" fill=\\"none\\" xmlns=\\"http://www.w3.org/2000/svg\\"><path d=\\"M3.75 5.7998L7.99274 10.0425L12.2361 5.79921\\" stroke=\\"black\\" stroke-opacity=\\"0.9\\" stroke-width=\\"1.3\\"></path></svg></span></div></div></div></div><div class=\\"t-space-item\\"><div class=\\"t-popup__reference t-tree-select t-tree-select--without-input t-select-input t-select-input--multiple\\"><div class=\\"t-input__wrap t-tag-input t-tag-input--break-line t-tag-input__with-suffix-icon\\" value=\\"\\"><div class=\\"t-input t-size-m t-align-left t-is-default t-input--prefix t-input--suffix\\"><div class=\\"t-input__prefix\\"><span class=\\"t-tag t-tag--default t-tag--dark t-tag--medium t-tag--square\\">广州市<svg fill=\\"none\\" viewBox=\\"0 0 16 16\\" width=\\"1em\\" height=\\"1em\\" class=\\"t-icon t-icon-close t-tag__icon-close\\"><path fill=\\"currentColor\\" d=\\"M8 8.92L11.08 12l.92-.92L8.92 8 12 4.92 11.08 4 8 7.08 4.92 4 4 4.92 7.08 8 4 11.08l.92.92L8 8.92z\\" fill-opacity=\\"0.9\\"></path></svg></span><div class=\\"t-popup__reference\\"><span class=\\"t-tag t-tag--default t-tag--dark t-tag--medium t-tag--square\\">更多...</span></div></div><input type=\\"text\\" placeholder=\\"\\" class=\\"t-input__inner\\" value=\\"\\"/><span class=\\"t-input__suffix t-input__suffix-icon\\"><svg class=\\"t-fake-arrow\\" width=\\"16\\" height=\\"16\\" viewBox=\\"0 0 16 16\\" fill=\\"none\\" xmlns=\\"http://www.w3.org/2000/svg\\"><path d=\\"M3.75 5.7998L7.99274 10.0425L12.2361 5.79921\\" stroke=\\"black\\" stroke-opacity=\\"0.9\\" stroke-width=\\"1.3\\"></path></svg></span></div></div></div></div></div>"`;

exports[`ssr snapshot test renders ./src/tree-select/_example/filterable.jsx correctly 1`] = `"<div style=\\"gap:16px;width:300px\\" class=\\"t-space t-space-vertical\\"><div class=\\"t-space-item\\"><div class=\\"t-radio-group t-size-m t-radio-group--filled\\"><label class=\\"t-radio-button t-is-checked\\" checked=\\"\\"><input type=\\"radio\\" class=\\"t-radio-button__former\\" checked=\\"\\" value=\\"default\\"/><span class=\\"t-radio-button__input\\"></span><span class=\\"t-radio-button__label\\">默认</span></label><label class=\\"t-radio-button\\"><input type=\\"radio\\" class=\\"t-radio-button__former\\" value=\\"function\\"/><span class=\\"t-radio-button__input\\"></span><span class=\\"t-radio-button__label\\">自定义方法</span></label><div class=\\"t-radio-group__bg-block\\"></div></div></div><div class=\\"t-space-item\\"><div class=\\"t-popup__reference t-tree-select t-select-input t-select-input--empty\\"><div class=\\"t-input__wrap\\" value=\\"\\"><div class=\\"t-input t-size-m t-align-left t-is-default t-input--prefix t-input--suffix\\"><div class=\\"t-input__prefix\\"></div><input type=\\"text\\" placeholder=\\"请选择\\" class=\\"t-input__inner\\" value=\\"\\"/><span class=\\"t-input__suffix t-input__suffix-icon\\"><svg class=\\"t-fake-arrow\\" width=\\"16\\" height=\\"16\\" viewBox=\\"0 0 16 16\\" fill=\\"none\\" xmlns=\\"http://www.w3.org/2000/svg\\"><path d=\\"M3.75 5.7998L7.99274 10.0425L12.2361 5.79921\\" stroke=\\"black\\" stroke-opacity=\\"0.9\\" stroke-width=\\"1.3\\"></path></svg></span></div></div></div><div class=\\"t-popup__reference t-tree-select t-select-input t-select-input--multiple t-select-input--empty\\"><div class=\\"t-input__wrap t-tag-input t-tag-input--break-line t-tag-input__with-suffix-icon\\" value=\\"\\"><div class=\\"t-input t-size-m t-align-left t-is-default t-input--prefix t-input--suffix\\"><div class=\\"t-input__prefix\\"></div><input type=\\"text\\" placeholder=\\"请选择\\" class=\\"t-input__inner\\" value=\\"\\"/><span class=\\"t-input__suffix t-input__suffix-icon\\"><svg class=\\"t-fake-arrow\\" width=\\"16\\" height=\\"16\\" viewBox=\\"0 0 16 16\\" fill=\\"none\\" xmlns=\\"http://www.w3.org/2000/svg\\"><path d=\\"M3.75 5.7998L7.99274 10.0425L12.2361 5.79921\\" stroke=\\"black\\" stroke-opacity=\\"0.9\\" stroke-width=\\"1.3\\"></path></svg></span></div></div></div></div></div>"`;
exports[`ssr snapshot test renders ./src/tree-select/_example/filterable.jsx correctly 1`] = `"<div style=\\"gap:16px;width:300px\\" class=\\"t-space t-space-vertical\\"><div class=\\"t-space-item\\"><div class=\\"t-radio-group t-size-m t-radio-group--filled\\"><label class=\\"t-radio-button t-is-checked\\" checked=\\"\\"><input type=\\"radio\\" class=\\"t-radio-button__former\\" checked=\\"\\" value=\\"default\\"/><span class=\\"t-radio-button__input\\"></span><span class=\\"t-radio-button__label\\">默认</span></label><label class=\\"t-radio-button\\"><input type=\\"radio\\" class=\\"t-radio-button__former\\" value=\\"function\\"/><span class=\\"t-radio-button__input\\"></span><span class=\\"t-radio-button__label\\">自定义方法</span></label><div class=\\"t-radio-group__bg-block\\"></div></div></div><div class=\\"t-space-item\\"><div class=\\"t-popup__reference t-tree-select t-select-input t-select-input--empty\\"><div class=\\"t-input__wrap\\" value=\\"\\"><div class=\\"t-input t-size-m t-align-left t-is-default t-input--prefix t-input--suffix\\"><div class=\\"t-input__prefix\\"></div><input type=\\"text\\" placeholder=\\"请选择\\" class=\\"t-input__inner\\" value=\\"\\"/><span class=\\"t-input__suffix t-input__suffix-icon\\"><svg class=\\"t-fake-arrow\\" width=\\"16\\" height=\\"16\\" viewBox=\\"0 0 16 16\\" fill=\\"none\\" xmlns=\\"http://www.w3.org/2000/svg\\"><path d=\\"M3.75 5.7998L7.99274 10.0425L12.2361 5.79921\\" stroke=\\"black\\" stroke-opacity=\\"0.9\\" stroke-width=\\"1.3\\"></path></svg></span></div></div></div></div><div class=\\"t-space-item\\"><div class=\\"t-popup__reference t-tree-select t-select-input t-select-input--multiple t-select-input--empty\\"><div class=\\"t-input__wrap t-tag-input t-tag-input--break-line t-tag-input__with-suffix-icon\\" value=\\"\\"><div class=\\"t-input t-size-m t-align-left t-is-default t-input--prefix t-input--suffix\\"><div class=\\"t-input__prefix\\"></div><input type=\\"text\\" placeholder=\\"请选择\\" class=\\"t-input__inner\\" value=\\"\\"/><span class=\\"t-input__suffix t-input__suffix-icon\\"><svg class=\\"t-fake-arrow\\" width=\\"16\\" height=\\"16\\" viewBox=\\"0 0 16 16\\" fill=\\"none\\" xmlns=\\"http://www.w3.org/2000/svg\\"><path d=\\"M3.75 5.7998L7.99274 10.0425L12.2361 5.79921\\" stroke=\\"black\\" stroke-opacity=\\"0.9\\" stroke-width=\\"1.3\\"></path></svg></span></div></div></div></div></div>"`;

exports[`ssr snapshot test renders ./src/tree-select/_example/lazy.jsx correctly 1`] = `"<div class=\\"t-popup__reference t-tree-select t-select-input t-select-input--empty\\" style=\\"width:300px\\"><div class=\\"t-input__wrap\\" value=\\"\\"><div class=\\"t-input t-is-readonly t-size-m t-align-left t-is-default t-input--prefix t-input--suffix\\"><div class=\\"t-input__prefix\\"></div><input type=\\"text\\" placeholder=\\"请选择\\" class=\\"t-input__inner\\" value=\\"\\" readonly=\\"\\"/><span class=\\"t-input__suffix t-input__suffix-icon\\"><svg class=\\"t-fake-arrow\\" width=\\"16\\" height=\\"16\\" viewBox=\\"0 0 16 16\\" fill=\\"none\\" xmlns=\\"http://www.w3.org/2000/svg\\"><path d=\\"M3.75 5.7998L7.99274 10.0425L12.2361 5.79921\\" stroke=\\"black\\" stroke-opacity=\\"0.9\\" stroke-width=\\"1.3\\"></path></svg></span></div></div></div>"`;

Expand Down Expand Up @@ -978,4 +978,4 @@ exports[`ssr snapshot test renders ./src/upload/_example/img-flow-list.jsx corre

exports[`ssr snapshot test renders ./src/upload/_example/request-method.jsx correctly 1`] = `"<div style=\\"gap:24px\\" class=\\"t-space t-space-vertical\\"><div class=\\"t-space-item\\"><div class=\\"t-radio-group t-size-m t-radio-group--filled\\"><label class=\\"t-radio-button t-is-checked\\" checked=\\"\\"><input type=\\"radio\\" class=\\"t-radio-button__former\\" checked=\\"\\" value=\\"requestSuccessMethod\\"/><span class=\\"t-radio-button__input\\"></span><span class=\\"t-radio-button__label\\">上传成功示例</span></label><label class=\\"t-radio-button\\"><input type=\\"radio\\" class=\\"t-radio-button__former\\" value=\\"requestFailMethod\\"/><span class=\\"t-radio-button__input\\"></span><span class=\\"t-radio-button__label\\">上传失败示例</span></label><div class=\\"t-radio-group__bg-block\\"></div></div></div><div class=\\"t-space-item\\"><div class=\\"t-upload\\"><input type=\\"file\\" hidden=\\"\\"/><div class=\\"t-upload__single t-upload__single-file\\"><div class=\\"t-upload__trigger\\"><button type=\\"button\\" class=\\"t-button t-button--theme-default t-button--variant-outline\\"><svg fill=\\"none\\" viewBox=\\"0 0 16 16\\" width=\\"1em\\" height=\\"1em\\" class=\\"t-icon t-icon-upload\\"><path fill=\\"currentColor\\" d=\\"M3.74 6.68L7.5 2.9v8.59h1V2.91l3.76 3.77.71-.7-4.62-4.63a.5.5 0 00-.7 0L3.03 5.97l.7.7z\\" fill-opacity=\\"0.9\\"></path><path fill=\\"currentColor\\" d=\\"M2 11v2a1 1 0 001 1h10a1 1 0 001-1v-2h-1v2H3v-2H2z\\" fill-opacity=\\"0.9\\"></path></svg><span class=\\"t-button__text\\">选择文件</span></button></div></div><small class=\\"t-upload__tips t-size-s\\">自定义上传方法需要返回成功或失败信息</small></div></div></div>"`;

exports[`ssr snapshot test renders ./src/upload/_example/single-custom.jsx correctly 1`] = `"<div style=\\"gap:16px\\" class=\\"t-space t-space-vertical\\"><div class=\\"t-space-item\\"><div class=\\"t-upload\\"><input type=\\"file\\" multiple=\\"\\" hidden=\\"\\"/><div class=\\"t-upload__trigger\\"><button type=\\"button\\" class=\\"t-button t-button--theme-primary t-button--variant-base\\"><span class=\\"t-button__text\\">自定义上传</span></button></div><small class=\\"t-upload__tips t-size-s\\">上传文件大小在 1M 以内</small></div></div><div class=\\"t-space-item\\"></div></div>"`;
exports[`ssr snapshot test renders ./src/upload/_example/single-custom.jsx correctly 1`] = `"<div style=\\"gap:16px\\" class=\\"t-space t-space-vertical\\"><div class=\\"t-space-item\\"><div class=\\"t-upload\\"><input type=\\"file\\" multiple=\\"\\" hidden=\\"\\"/><div class=\\"t-upload__trigger\\"><button type=\\"button\\" class=\\"t-button t-button--theme-primary t-button--variant-base\\"><span class=\\"t-button__text\\">自定义上传</span></button></div><small class=\\"t-upload__tips t-size-s\\">上传文件大小在 1M 以内</small></div></div></div>"`;

0 comments on commit 2fc3ce3

Please sign in to comment.