Skip to content

Commit

Permalink
test(dialog): update demo snapshot
Browse files Browse the repository at this point in the history
  • Loading branch information
ZWkang committed May 8, 2024
1 parent 9cb5792 commit 5530dd0
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 2 deletions.
24 changes: 23 additions & 1 deletion test/snap/__snapshots__/csr.test.jsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -88043,6 +88043,7 @@ exports[`csr snapshot test > csr test src/dialog/_example/async.jsx 1`] = `
<div>
<button
class="t-button t-button--theme-primary t-button--variant-base"
style="margin-right: 16px;"
type="button"
>
<span
Expand All @@ -88051,11 +88052,22 @@ exports[`csr snapshot test > csr test src/dialog/_example/async.jsx 1`] = `
Open Modal
</span>
</button>
<button
class="t-button t-button--theme-primary t-button--variant-base"
type="button"
>
<span
class="t-button__text"
>
Open Plugin Modal
</span>
</button>
</div>
</body>,
"container": <div>
<button
class="t-button t-button--theme-primary t-button--variant-base"
style="margin-right: 16px;"
type="button"
>
<span
Expand All @@ -88064,6 +88076,16 @@ exports[`csr snapshot test > csr test src/dialog/_example/async.jsx 1`] = `
Open Modal
</span>
</button>
<button
class="t-button t-button--theme-primary t-button--variant-base"
type="button"
>
<span
class="t-button__text"
>
Open Plugin Modal
</span>
</button>
</div>,
"debug": [Function],
"findAllByAltText": [Function],
Expand Down Expand Up @@ -305283,7 +305305,7 @@ exports[`ssr snapshot test > ssr test src/descriptions/_example/nest.jsx 1`] = `

exports[`ssr snapshot test > ssr test src/descriptions/_example/size.jsx 1`] = `"<div style=\\"gap:16px\\" class=\\"t-space t-space-vertical\\"><div class=\\"t-space-item\\"><div class=\\"t-radio-group t-size-m t-radio-group--filled\\"><label tabindex=\\"0\\" class=\\"t-radio-button\\"><input type=\\"radio\\" class=\\"t-radio-button__former\\" tabindex=\\"-1\\" data-value=\\"&#x27;large&#x27;\\" value=\\"large\\"/><span class=\\"t-radio-button__input\\"></span><span class=\\"t-radio-button__label\\">large</span></label><label tabindex=\\"0\\" class=\\"t-radio-button t-is-checked\\" checked=\\"\\"><input type=\\"radio\\" class=\\"t-radio-button__former\\" tabindex=\\"-1\\" data-value=\\"&#x27;medium&#x27;\\" checked=\\"\\" value=\\"medium\\"/><span class=\\"t-radio-button__input\\"></span><span class=\\"t-radio-button__label\\">medium</span></label><label tabindex=\\"0\\" class=\\"t-radio-button\\"><input type=\\"radio\\" class=\\"t-radio-button__former\\" tabindex=\\"-1\\" data-value=\\"&#x27;small&#x27;\\" value=\\"small\\"/><span class=\\"t-radio-button__input\\"></span><span class=\\"t-radio-button__label\\">small</span></label><div class=\\"t-radio-group__bg-block\\"></div></div></div><div class=\\"t-space-item\\"><div class=\\"t-descriptions\\"><div class=\\"t-descriptions__header\\">Shipping address</div><table class=\\"t-descriptions__body t-size-m t-descriptions__body--border\\"><tbody><tr><td colSpan=\\"1\\" class=\\"t-descriptions__label\\">Name</td><td colSpan=\\"1\\" class=\\"t-descriptions__content\\">TDesign</td><td colSpan=\\"1\\" class=\\"t-descriptions__label\\">Telephone Number</td><td colSpan=\\"1\\" class=\\"t-descriptions__content\\">139****0609</td></tr><tr><td colSpan=\\"1\\" class=\\"t-descriptions__label\\">Area</td><td colSpan=\\"1\\" class=\\"t-descriptions__content\\">China Tencent Headquarters</td><td colSpan=\\"1\\" class=\\"t-descriptions__label\\">Address</td><td colSpan=\\"1\\" class=\\"t-descriptions__content\\">Shenzhen Penguin Island D1 4A Mail Center</td></tr></tbody></table></div></div></div>"`;

exports[`ssr snapshot test > ssr test src/dialog/_example/async.jsx 1`] = `"<button type=\\"button\\" class=\\"t-button t-button--theme-primary t-button--variant-base\\"><span class=\\"t-button__text\\">Open Modal</span></button>"`;
exports[`ssr snapshot test > ssr test src/dialog/_example/async.jsx 1`] = `"<button style=\\"margin-right:16px\\" type=\\"button\\" class=\\"t-button t-button--theme-primary t-button--variant-base\\"><span class=\\"t-button__text\\">Open Modal</span></button><button type=\\"button\\" class=\\"t-button t-button--theme-primary t-button--variant-base\\"><span class=\\"t-button__text\\">Open Plugin Modal</span></button>"`;

exports[`ssr snapshot test > ssr test src/dialog/_example/attach.jsx 1`] = `"<div style=\\"position:relative;height:400px\\"><button style=\\"margin-right:16px\\" type=\\"button\\" class=\\"t-button t-button--theme-primary t-button--variant-base\\"><span class=\\"t-button__text\\">挂载在body</span></button><button style=\\"margin-right:16px\\" type=\\"button\\" class=\\"t-button t-button--theme-primary t-button--variant-base\\"><span class=\\"t-button__text\\">挂载特定元素</span></button><button style=\\"margin-right:16px\\" type=\\"button\\" class=\\"t-button t-button--theme-primary t-button--variant-base\\"><span class=\\"t-button__text\\">挂载函数返回节点</span></button><button style=\\"margin-right:16px\\" type=\\"button\\" class=\\"t-button t-button--theme-primary t-button--variant-base\\"><span class=\\"t-button__text\\">展示在挂载元素区域</span></button></div>"`;

Expand Down
2 changes: 1 addition & 1 deletion test/snap/__snapshots__/ssr.test.jsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,7 @@ exports[`ssr snapshot test > ssr test src/descriptions/_example/nest.jsx 1`] = `

exports[`ssr snapshot test > ssr test src/descriptions/_example/size.jsx 1`] = `"<div style=\\"gap:16px\\" class=\\"t-space t-space-vertical\\"><div class=\\"t-space-item\\"><div class=\\"t-radio-group t-size-m t-radio-group--filled\\"><label tabindex=\\"0\\" class=\\"t-radio-button\\"><input type=\\"radio\\" class=\\"t-radio-button__former\\" tabindex=\\"-1\\" data-value=\\"&#x27;large&#x27;\\" value=\\"large\\"/><span class=\\"t-radio-button__input\\"></span><span class=\\"t-radio-button__label\\">large</span></label><label tabindex=\\"0\\" class=\\"t-radio-button t-is-checked\\" checked=\\"\\"><input type=\\"radio\\" class=\\"t-radio-button__former\\" tabindex=\\"-1\\" data-value=\\"&#x27;medium&#x27;\\" checked=\\"\\" value=\\"medium\\"/><span class=\\"t-radio-button__input\\"></span><span class=\\"t-radio-button__label\\">medium</span></label><label tabindex=\\"0\\" class=\\"t-radio-button\\"><input type=\\"radio\\" class=\\"t-radio-button__former\\" tabindex=\\"-1\\" data-value=\\"&#x27;small&#x27;\\" value=\\"small\\"/><span class=\\"t-radio-button__input\\"></span><span class=\\"t-radio-button__label\\">small</span></label><div class=\\"t-radio-group__bg-block\\"></div></div></div><div class=\\"t-space-item\\"><div class=\\"t-descriptions\\"><div class=\\"t-descriptions__header\\">Shipping address</div><table class=\\"t-descriptions__body t-size-m t-descriptions__body--border\\"><tbody><tr><td colSpan=\\"1\\" class=\\"t-descriptions__label\\">Name</td><td colSpan=\\"1\\" class=\\"t-descriptions__content\\">TDesign</td><td colSpan=\\"1\\" class=\\"t-descriptions__label\\">Telephone Number</td><td colSpan=\\"1\\" class=\\"t-descriptions__content\\">139****0609</td></tr><tr><td colSpan=\\"1\\" class=\\"t-descriptions__label\\">Area</td><td colSpan=\\"1\\" class=\\"t-descriptions__content\\">China Tencent Headquarters</td><td colSpan=\\"1\\" class=\\"t-descriptions__label\\">Address</td><td colSpan=\\"1\\" class=\\"t-descriptions__content\\">Shenzhen Penguin Island D1 4A Mail Center</td></tr></tbody></table></div></div></div>"`;

exports[`ssr snapshot test > ssr test src/dialog/_example/async.jsx 1`] = `"<button type=\\"button\\" class=\\"t-button t-button--theme-primary t-button--variant-base\\"><span class=\\"t-button__text\\">Open Modal</span></button>"`;
exports[`ssr snapshot test > ssr test src/dialog/_example/async.jsx 1`] = `"<button style=\\"margin-right:16px\\" type=\\"button\\" class=\\"t-button t-button--theme-primary t-button--variant-base\\"><span class=\\"t-button__text\\">Open Modal</span></button><button type=\\"button\\" class=\\"t-button t-button--theme-primary t-button--variant-base\\"><span class=\\"t-button__text\\">Open Plugin Modal</span></button>"`;

exports[`ssr snapshot test > ssr test src/dialog/_example/attach.jsx 1`] = `"<div style=\\"position:relative;height:400px\\"><button style=\\"margin-right:16px\\" type=\\"button\\" class=\\"t-button t-button--theme-primary t-button--variant-base\\"><span class=\\"t-button__text\\">挂载在body</span></button><button style=\\"margin-right:16px\\" type=\\"button\\" class=\\"t-button t-button--theme-primary t-button--variant-base\\"><span class=\\"t-button__text\\">挂载特定元素</span></button><button style=\\"margin-right:16px\\" type=\\"button\\" class=\\"t-button t-button--theme-primary t-button--variant-base\\"><span class=\\"t-button__text\\">挂载函数返回节点</span></button><button style=\\"margin-right:16px\\" type=\\"button\\" class=\\"t-button t-button--theme-primary t-button--variant-base\\"><span class=\\"t-button__text\\">展示在挂载元素区域</span></button></div>"`;

Expand Down

0 comments on commit 5530dd0

Please sign in to comment.