Skip to content

Commit

Permalink
chore: update snapshot
Browse files Browse the repository at this point in the history
  • Loading branch information
uyarn committed Jul 11, 2023
1 parent 97933f0 commit 6b9ae87
Show file tree
Hide file tree
Showing 2 changed files with 251 additions and 0 deletions.
249 changes: 249 additions & 0 deletions test/snap/__snapshots__/csr.test.jsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -287896,6 +287896,255 @@ exports[`csr snapshot test > csr test src/tree/_example/sync.jsx 1`] = `
}
`;

exports[`csr snapshot test > csr test src/tree/_example/vscroll.jsx 1`] = `
{
"asFragment": [Function],
"baseElement": <body>
<script
class="t-svg-js-stylesheet--unique-class"
src="https://tdesign.gtimg.com/icon/0.1.4/fonts/index.js"
/>
<script
class="t-svg-js-stylesheet--unique-class"
src="https://tdesign.gtimg.com/icon/default-demo/index.js"
/>
<div>
<div
class="t-space t-space-vertical"
style="gap: 16px;"
>
<div
class="t-space-item"
>
<form
class="t-form"
>
<div
class="t-form__item"
>
<div
class="t-form__label t-form__label--right"
style="width: 100px;"
>
<label>
可选
</label>
</div>
<div
class="t-form__controls"
style="margin-left: 100px;"
>
<div
class="t-form__controls-content"
>
<button
class="t-switch t-is-checked t-size-m"
role="switch"
type="button"
>
<span
class="t-switch__handle"
/>
<div
class="t-switch__content"
/>
</button>
</div>
</div>
</div>
<div
class="t-form__item"
>
<div
class="t-form__label t-form__label--right"
style="width: 100px;"
>
<label>
展示连线
</label>
</div>
<div
class="t-form__controls"
style="margin-left: 100px;"
>
<div
class="t-form__controls-content"
>
<button
class="t-switch t-is-checked t-size-m"
role="switch"
type="button"
>
<span
class="t-switch__handle"
/>
<div
class="t-switch__content"
/>
</button>
</div>
</div>
</div>
</form>
</div>
<div
class="t-space-item"
>
<div
class="t-tree t-tree--hoverable t-tree--checkable t-tree--transition"
style="height: 300px;"
>
Tree Empty Data
</div>
</div>
</div>
</div>
</body>,
"container": <div>
<div
class="t-space t-space-vertical"
style="gap: 16px;"
>
<div
class="t-space-item"
>
<form
class="t-form"
>
<div
class="t-form__item"
>
<div
class="t-form__label t-form__label--right"
style="width: 100px;"
>
<label>
可选
</label>
</div>
<div
class="t-form__controls"
style="margin-left: 100px;"
>
<div
class="t-form__controls-content"
>
<button
class="t-switch t-is-checked t-size-m"
role="switch"
type="button"
>
<span
class="t-switch__handle"
/>
<div
class="t-switch__content"
/>
</button>
</div>
</div>
</div>
<div
class="t-form__item"
>
<div
class="t-form__label t-form__label--right"
style="width: 100px;"
>
<label>
展示连线
</label>
</div>
<div
class="t-form__controls"
style="margin-left: 100px;"
>
<div
class="t-form__controls-content"
>
<button
class="t-switch t-is-checked t-size-m"
role="switch"
type="button"
>
<span
class="t-switch__handle"
/>
<div
class="t-switch__content"
/>
</button>
</div>
</div>
</div>
</form>
</div>
<div
class="t-space-item"
>
<div
class="t-tree t-tree--hoverable t-tree--checkable t-tree--transition"
style="height: 300px;"
>
Tree Empty Data
</div>
</div>
</div>
</div>,
"debug": [Function],
"findAllByAltText": [Function],
"findAllByDisplayValue": [Function],
"findAllByLabelText": [Function],
"findAllByPlaceholderText": [Function],
"findAllByRole": [Function],
"findAllByTestId": [Function],
"findAllByText": [Function],
"findAllByTitle": [Function],
"findByAltText": [Function],
"findByDisplayValue": [Function],
"findByLabelText": [Function],
"findByPlaceholderText": [Function],
"findByRole": [Function],
"findByTestId": [Function],
"findByText": [Function],
"findByTitle": [Function],
"getAllByAltText": [Function],
"getAllByDisplayValue": [Function],
"getAllByLabelText": [Function],
"getAllByPlaceholderText": [Function],
"getAllByRole": [Function],
"getAllByTestId": [Function],
"getAllByText": [Function],
"getAllByTitle": [Function],
"getByAltText": [Function],
"getByDisplayValue": [Function],
"getByLabelText": [Function],
"getByPlaceholderText": [Function],
"getByRole": [Function],
"getByTestId": [Function],
"getByText": [Function],
"getByTitle": [Function],
"queryAllByAltText": [Function],
"queryAllByDisplayValue": [Function],
"queryAllByLabelText": [Function],
"queryAllByPlaceholderText": [Function],
"queryAllByRole": [Function],
"queryAllByTestId": [Function],
"queryAllByText": [Function],
"queryAllByTitle": [Function],
"queryByAltText": [Function],
"queryByDisplayValue": [Function],
"queryByLabelText": [Function],
"queryByPlaceholderText": [Function],
"queryByRole": [Function],
"queryByTestId": [Function],
"queryByText": [Function],
"queryByTitle": [Function],
"rerender": [Function],
"unmount": [Function],
}
`;

exports[`csr snapshot test > csr test src/tree-select/_example/base.jsx 1`] = `
{
"asFragment": [Function],
Expand Down
2 changes: 2 additions & 0 deletions test/snap/__snapshots__/ssr.test.jsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -1094,6 +1094,8 @@ exports[`ssr snapshot test > ssr test src/tree/_example/state.jsx 1`] = `"<div s

exports[`ssr snapshot test > ssr test src/tree/_example/sync.jsx 1`] = `"<div style=\\"gap:16px;width:100%\\" class=\\"t-space t-space-vertical\\"><div class=\\"t-space-item\\"><div class=\\"t-input-adornment\\"><span class=\\"t-input-adornment__prepend\\"><span class=\\"t-input-adornment__text\\">checked:</span></span><div class=\\"t-input__wrap\\" value=\\"{1.1.1.1}, {1.1.1.2}\\"><div class=\\"t-input t-align-left\\"><input placeholder=\\"please enter\\" type=\\"text\\" class=\\"t-input__inner\\" value=\\"{1.1.1.1}, {1.1.1.2}\\"/></div></div></div></div><div class=\\"t-space-item\\"><div class=\\"t-input-adornment\\"><span class=\\"t-input-adornment__prepend\\"><span class=\\"t-input-adornment__text\\">expanded:</span></span><div class=\\"t-input__wrap\\" value=\\"{1}, {1.1}, {1.1.1}, {2}\\"><div class=\\"t-input t-align-left\\"><input placeholder=\\"please enter\\" type=\\"text\\" class=\\"t-input__inner\\" value=\\"{1}, {1.1}, {1.1.1}, {2}\\"/></div></div></div></div><div class=\\"t-space-item\\"><div class=\\"t-input-adornment\\"><span class=\\"t-input-adornment__prepend\\"><span class=\\"t-input-adornment__text\\">actived:</span></span><div class=\\"t-input__wrap\\" value=\\"{2}\\"><div class=\\"t-input t-align-left\\"><input placeholder=\\"please enter\\" type=\\"text\\" class=\\"t-input__inner\\" value=\\"{2}\\"/></div></div></div></div><div class=\\"t-space-item\\"><div class=\\"t-tree t-tree--checkable t-tree--transition\\">Tree Empty Data</div></div></div>"`;

exports[`ssr snapshot test > ssr test src/tree/_example/vscroll.jsx 1`] = `"<div style=\\"gap:16px\\" class=\\"t-space t-space-vertical\\"><div class=\\"t-space-item\\"><form class=\\"t-form\\"><div class=\\"t-form__item\\"><div class=\\"t-form__label t-form__label--right\\" style=\\"width:100px\\"><label>可选</label></div><div class=\\"t-form__controls\\" style=\\"margin-left:100px\\"><div class=\\"t-form__controls-content\\"><button type=\\"button\\" role=\\"switch\\" class=\\"t-switch t-is-checked t-size-m\\"><span class=\\"t-switch__handle\\"></span><div class=\\"t-switch__content\\"></div></button></div></div></div><div class=\\"t-form__item\\"><div class=\\"t-form__label t-form__label--right\\" style=\\"width:100px\\"><label>展示连线</label></div><div class=\\"t-form__controls\\" style=\\"margin-left:100px\\"><div class=\\"t-form__controls-content\\"><button type=\\"button\\" role=\\"switch\\" class=\\"t-switch t-is-checked t-size-m\\"><span class=\\"t-switch__handle\\"></span><div class=\\"t-switch__content\\"></div></button></div></div></div></form></div><div class=\\"t-space-item\\"><div class=\\"t-tree t-tree--hoverable t-tree--checkable t-tree--transition\\" style=\\"height:300px\\">Tree Empty Data</div></div></div>"`;

exports[`ssr snapshot test > ssr test src/tree-select/_example/base.jsx 1`] = `"<div class=\\"t-tree-select t-select-input\\" style=\\"width:300px\\"><div class=\\"t-input__wrap\\" value=\\"广东省\\"><div class=\\"t-input t-is-readonly t-align-left t-input--prefix t-input--suffix\\"><div class=\\"t-input__prefix\\"></div><input placeholder=\\"please select\\" type=\\"text\\" class=\\"t-input__inner\\" readonly=\\"\\" 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>"`;

exports[`ssr snapshot test > ssr test src/tree-select/_example/collapsed.jsx 1`] = `"<div style=\\"gap:16px;width:300px\\" class=\\"t-space t-space-vertical\\"><div class=\\"t-space-item\\"><div class=\\"t-tree-select 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 t-tag-input--with-tag\\" value=\\"\\"><div class=\\"t-input t-is-readonly t-align-left t-input--prefix t-input--suffix\\"><div class=\\"t-input__prefix\\"><span class=\\"t-tag t-tag--default t-tag--dark\\"><span title=\\"广州市\\">广州市</span><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\\"><span>+<!-- -->1</span></span></div><span class=\\"t-input__input-pre\\"></span><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-tree-select 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 t-tag-input--with-tag\\" value=\\"\\"><div class=\\"t-input t-is-readonly t-align-left t-input--prefix t-input--suffix\\"><div class=\\"t-input__prefix\\"><span class=\\"t-tag t-tag--default t-tag--dark\\"><span title=\\"广州市\\">广州市</span><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\\"><span title=\\"更多...\\">更多...</span></span></div><span class=\\"t-input__input-pre\\"></span><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>"`;
Expand Down

0 comments on commit 6b9ae87

Please sign in to comment.