Browse Source

update snapshot

pull/13350/head
zombiej 6 years ago
parent
commit
aa16fdde86
  1. 46
      components/card/__tests__/__snapshots__/demo.test.js.snap
  2. 240
      components/tabs/__tests__/__snapshots__/demo.test.js.snap
  3. 40
      components/tabs/__tests__/__snapshots__/index.test.js.snap

46
components/card/__tests__/__snapshots__/demo.test.js.snap

@ -907,6 +907,11 @@ exports[`renders ./components/card/demo/tabs.md correctly 1`] = `
</div> </div>
</div> </div>
</div> </div>
<div
role="presentation"
style="width:0;height:0;overflow:hidden"
tabindex="0"
/>
<div <div
class="ant-tabs-content ant-tabs-content-animated" class="ant-tabs-content ant-tabs-content-animated"
style="margin-left:0%" style="margin-left:0%"
@ -915,13 +920,29 @@ exports[`renders ./components/card/demo/tabs.md correctly 1`] = `
aria-hidden="false" aria-hidden="false"
class="ant-tabs-tabpane ant-tabs-tabpane-active" class="ant-tabs-tabpane ant-tabs-tabpane-active"
role="tabpanel" role="tabpanel"
/> >
<div
role="presentation"
style="width:0;height:0;overflow:hidden"
tabindex="0"
/>
<div
role="presentation"
style="width:0;height:0;overflow:hidden"
tabindex="0"
/>
</div>
<div <div
aria-hidden="true" aria-hidden="true"
class="ant-tabs-tabpane ant-tabs-tabpane-inactive" class="ant-tabs-tabpane ant-tabs-tabpane-inactive"
role="tabpanel" role="tabpanel"
/> />
</div> </div>
<div
role="presentation"
style="width:0;height:0;overflow:hidden"
tabindex="0"
/>
</div> </div>
</div> </div>
<div <div
@ -1050,6 +1071,11 @@ exports[`renders ./components/card/demo/tabs.md correctly 1`] = `
</div> </div>
</div> </div>
</div> </div>
<div
role="presentation"
style="width:0;height:0;overflow:hidden"
tabindex="0"
/>
<div <div
class="ant-tabs-content ant-tabs-content-animated" class="ant-tabs-content ant-tabs-content-animated"
style="margin-left:-100%" style="margin-left:-100%"
@ -1063,13 +1089,29 @@ exports[`renders ./components/card/demo/tabs.md correctly 1`] = `
aria-hidden="false" aria-hidden="false"
class="ant-tabs-tabpane ant-tabs-tabpane-active" class="ant-tabs-tabpane ant-tabs-tabpane-active"
role="tabpanel" role="tabpanel"
/> >
<div
role="presentation"
style="width:0;height:0;overflow:hidden"
tabindex="0"
/>
<div
role="presentation"
style="width:0;height:0;overflow:hidden"
tabindex="0"
/>
</div>
<div <div
aria-hidden="true" aria-hidden="true"
class="ant-tabs-tabpane ant-tabs-tabpane-inactive" class="ant-tabs-tabpane ant-tabs-tabpane-inactive"
role="tabpanel" role="tabpanel"
/> />
</div> </div>
<div
role="presentation"
style="width:0;height:0;overflow:hidden"
tabindex="0"
/>
</div> </div>
</div> </div>
<div <div

240
components/tabs/__tests__/__snapshots__/demo.test.js.snap

@ -107,6 +107,11 @@ exports[`renders ./components/tabs/demo/basic.md correctly 1`] = `
</div> </div>
</div> </div>
</div> </div>
<div
role="presentation"
style="width:0;height:0;overflow:hidden"
tabindex="0"
/>
<div <div
class="ant-tabs-content ant-tabs-content-animated" class="ant-tabs-content ant-tabs-content-animated"
style="margin-left:0%" style="margin-left:0%"
@ -116,7 +121,17 @@ exports[`renders ./components/tabs/demo/basic.md correctly 1`] = `
class="ant-tabs-tabpane ant-tabs-tabpane-active" class="ant-tabs-tabpane ant-tabs-tabpane-active"
role="tabpanel" role="tabpanel"
> >
<div
role="presentation"
style="width:0;height:0;overflow:hidden"
tabindex="0"
/>
Content of Tab Pane 1 Content of Tab Pane 1
<div
role="presentation"
style="width:0;height:0;overflow:hidden"
tabindex="0"
/>
</div> </div>
<div <div
aria-hidden="true" aria-hidden="true"
@ -129,6 +144,11 @@ exports[`renders ./components/tabs/demo/basic.md correctly 1`] = `
role="tabpanel" role="tabpanel"
/> />
</div> </div>
<div
role="presentation"
style="width:0;height:0;overflow:hidden"
tabindex="0"
/>
</div> </div>
`; `;
@ -239,6 +259,11 @@ exports[`renders ./components/tabs/demo/card.md correctly 1`] = `
</div> </div>
</div> </div>
</div> </div>
<div
role="presentation"
style="width:0;height:0;overflow:hidden"
tabindex="0"
/>
<div <div
class="ant-tabs-content ant-tabs-content-no-animated" class="ant-tabs-content ant-tabs-content-no-animated"
> >
@ -247,7 +272,17 @@ exports[`renders ./components/tabs/demo/card.md correctly 1`] = `
class="ant-tabs-tabpane ant-tabs-tabpane-active" class="ant-tabs-tabpane ant-tabs-tabpane-active"
role="tabpanel" role="tabpanel"
> >
<div
role="presentation"
style="width:0;height:0;overflow:hidden"
tabindex="0"
/>
Content of Tab Pane 1 Content of Tab Pane 1
<div
role="presentation"
style="width:0;height:0;overflow:hidden"
tabindex="0"
/>
</div> </div>
<div <div
aria-hidden="true" aria-hidden="true"
@ -260,6 +295,11 @@ exports[`renders ./components/tabs/demo/card.md correctly 1`] = `
role="tabpanel" role="tabpanel"
/> />
</div> </div>
<div
role="presentation"
style="width:0;height:0;overflow:hidden"
tabindex="0"
/>
</div> </div>
`; `;
@ -373,6 +413,11 @@ exports[`renders ./components/tabs/demo/card-top.md correctly 1`] = `
</div> </div>
</div> </div>
</div> </div>
<div
role="presentation"
style="width:0;height:0;overflow:hidden"
tabindex="0"
/>
<div <div
class="ant-tabs-content ant-tabs-content-no-animated" class="ant-tabs-content ant-tabs-content-no-animated"
> >
@ -381,6 +426,11 @@ exports[`renders ./components/tabs/demo/card-top.md correctly 1`] = `
class="ant-tabs-tabpane ant-tabs-tabpane-active" class="ant-tabs-tabpane ant-tabs-tabpane-active"
role="tabpanel" role="tabpanel"
> >
<div
role="presentation"
style="width:0;height:0;overflow:hidden"
tabindex="0"
/>
<p> <p>
Content of Tab Pane 1 Content of Tab Pane 1
</p> </p>
@ -390,6 +440,11 @@ exports[`renders ./components/tabs/demo/card-top.md correctly 1`] = `
<p> <p>
Content of Tab Pane 1 Content of Tab Pane 1
</p> </p>
<div
role="presentation"
style="width:0;height:0;overflow:hidden"
tabindex="0"
/>
</div> </div>
<div <div
aria-hidden="true" aria-hidden="true"
@ -402,6 +457,11 @@ exports[`renders ./components/tabs/demo/card-top.md correctly 1`] = `
role="tabpanel" role="tabpanel"
/> />
</div> </div>
<div
role="presentation"
style="width:0;height:0;overflow:hidden"
tabindex="0"
/>
</div> </div>
</div> </div>
`; `;
@ -556,6 +616,11 @@ exports[`renders ./components/tabs/demo/custom-add-trigger.md correctly 1`] = `
</div> </div>
</div> </div>
</div> </div>
<div
role="presentation"
style="width:0;height:0;overflow:hidden"
tabindex="0"
/>
<div <div
class="ant-tabs-content ant-tabs-content-no-animated" class="ant-tabs-content ant-tabs-content-no-animated"
> >
@ -564,7 +629,17 @@ exports[`renders ./components/tabs/demo/custom-add-trigger.md correctly 1`] = `
class="ant-tabs-tabpane ant-tabs-tabpane-active" class="ant-tabs-tabpane ant-tabs-tabpane-active"
role="tabpanel" role="tabpanel"
> >
<div
role="presentation"
style="width:0;height:0;overflow:hidden"
tabindex="0"
/>
Content of Tab Pane 1 Content of Tab Pane 1
<div
role="presentation"
style="width:0;height:0;overflow:hidden"
tabindex="0"
/>
</div> </div>
<div <div
aria-hidden="true" aria-hidden="true"
@ -572,6 +647,11 @@ exports[`renders ./components/tabs/demo/custom-add-trigger.md correctly 1`] = `
role="tabpanel" role="tabpanel"
/> />
</div> </div>
<div
role="presentation"
style="width:0;height:0;overflow:hidden"
tabindex="0"
/>
</div> </div>
</div> </div>
`; `;
@ -688,6 +768,11 @@ exports[`renders ./components/tabs/demo/custom-tab-bar.md correctly 1`] = `
</div> </div>
</div> </div>
</div> </div>
<div
role="presentation"
style="width:0;height:0;overflow:hidden"
tabindex="0"
/>
<div <div
class="ant-tabs-content ant-tabs-content-animated" class="ant-tabs-content ant-tabs-content-animated"
style="margin-left:0%" style="margin-left:0%"
@ -698,7 +783,17 @@ exports[`renders ./components/tabs/demo/custom-tab-bar.md correctly 1`] = `
role="tabpanel" role="tabpanel"
style="height:200px" style="height:200px"
> >
<div
role="presentation"
style="width:0;height:0;overflow:hidden"
tabindex="0"
/>
Content of Tab Pane 1 Content of Tab Pane 1
<div
role="presentation"
style="width:0;height:0;overflow:hidden"
tabindex="0"
/>
</div> </div>
<div <div
aria-hidden="true" aria-hidden="true"
@ -711,6 +806,11 @@ exports[`renders ./components/tabs/demo/custom-tab-bar.md correctly 1`] = `
role="tabpanel" role="tabpanel"
/> />
</div> </div>
<div
role="presentation"
style="width:0;height:0;overflow:hidden"
tabindex="0"
/>
</div> </div>
</div> </div>
`; `;
@ -822,6 +922,11 @@ exports[`renders ./components/tabs/demo/disabled.md correctly 1`] = `
</div> </div>
</div> </div>
</div> </div>
<div
role="presentation"
style="width:0;height:0;overflow:hidden"
tabindex="0"
/>
<div <div
class="ant-tabs-content ant-tabs-content-animated" class="ant-tabs-content ant-tabs-content-animated"
style="margin-left:0%" style="margin-left:0%"
@ -831,7 +936,17 @@ exports[`renders ./components/tabs/demo/disabled.md correctly 1`] = `
class="ant-tabs-tabpane ant-tabs-tabpane-active" class="ant-tabs-tabpane ant-tabs-tabpane-active"
role="tabpanel" role="tabpanel"
> >
<div
role="presentation"
style="width:0;height:0;overflow:hidden"
tabindex="0"
/>
Tab 1 Tab 1
<div
role="presentation"
style="width:0;height:0;overflow:hidden"
tabindex="0"
/>
</div> </div>
<div <div
aria-hidden="true" aria-hidden="true"
@ -844,6 +959,11 @@ exports[`renders ./components/tabs/demo/disabled.md correctly 1`] = `
role="tabpanel" role="tabpanel"
/> />
</div> </div>
<div
role="presentation"
style="width:0;height:0;overflow:hidden"
tabindex="0"
/>
</div> </div>
`; `;
@ -1020,6 +1140,11 @@ exports[`renders ./components/tabs/demo/editable-card.md correctly 1`] = `
</div> </div>
</div> </div>
</div> </div>
<div
role="presentation"
style="width:0;height:0;overflow:hidden"
tabindex="0"
/>
<div <div
class="ant-tabs-content ant-tabs-content-no-animated" class="ant-tabs-content ant-tabs-content-no-animated"
> >
@ -1028,7 +1153,17 @@ exports[`renders ./components/tabs/demo/editable-card.md correctly 1`] = `
class="ant-tabs-tabpane ant-tabs-tabpane-active" class="ant-tabs-tabpane ant-tabs-tabpane-active"
role="tabpanel" role="tabpanel"
> >
<div
role="presentation"
style="width:0;height:0;overflow:hidden"
tabindex="0"
/>
Content of Tab 1 Content of Tab 1
<div
role="presentation"
style="width:0;height:0;overflow:hidden"
tabindex="0"
/>
</div> </div>
<div <div
aria-hidden="true" aria-hidden="true"
@ -1041,6 +1176,11 @@ exports[`renders ./components/tabs/demo/editable-card.md correctly 1`] = `
role="tabpanel" role="tabpanel"
/> />
</div> </div>
<div
role="presentation"
style="width:0;height:0;overflow:hidden"
tabindex="0"
/>
</div> </div>
`; `;
@ -1164,6 +1304,11 @@ exports[`renders ./components/tabs/demo/extra.md correctly 1`] = `
</div> </div>
</div> </div>
</div> </div>
<div
role="presentation"
style="width:0;height:0;overflow:hidden"
tabindex="0"
/>
<div <div
class="ant-tabs-content ant-tabs-content-animated" class="ant-tabs-content ant-tabs-content-animated"
style="margin-left:0%" style="margin-left:0%"
@ -1173,7 +1318,17 @@ exports[`renders ./components/tabs/demo/extra.md correctly 1`] = `
class="ant-tabs-tabpane ant-tabs-tabpane-active" class="ant-tabs-tabpane ant-tabs-tabpane-active"
role="tabpanel" role="tabpanel"
> >
<div
role="presentation"
style="width:0;height:0;overflow:hidden"
tabindex="0"
/>
Content of tab 1 Content of tab 1
<div
role="presentation"
style="width:0;height:0;overflow:hidden"
tabindex="0"
/>
</div> </div>
<div <div
aria-hidden="true" aria-hidden="true"
@ -1186,6 +1341,11 @@ exports[`renders ./components/tabs/demo/extra.md correctly 1`] = `
role="tabpanel" role="tabpanel"
/> />
</div> </div>
<div
role="presentation"
style="width:0;height:0;overflow:hidden"
tabindex="0"
/>
</div> </div>
`; `;
@ -1326,6 +1486,11 @@ exports[`renders ./components/tabs/demo/icon.md correctly 1`] = `
</div> </div>
</div> </div>
</div> </div>
<div
role="presentation"
style="width:0;height:0;overflow:hidden"
tabindex="0"
/>
<div <div
class="ant-tabs-content ant-tabs-content-animated" class="ant-tabs-content ant-tabs-content-animated"
style="margin-left:-100%" style="margin-left:-100%"
@ -1340,9 +1505,24 @@ exports[`renders ./components/tabs/demo/icon.md correctly 1`] = `
class="ant-tabs-tabpane ant-tabs-tabpane-active" class="ant-tabs-tabpane ant-tabs-tabpane-active"
role="tabpanel" role="tabpanel"
> >
<div
role="presentation"
style="width:0;height:0;overflow:hidden"
tabindex="0"
/>
Tab 2 Tab 2
<div
role="presentation"
style="width:0;height:0;overflow:hidden"
tabindex="0"
/>
</div> </div>
</div> </div>
<div
role="presentation"
style="width:0;height:0;overflow:hidden"
tabindex="0"
/>
</div> </div>
`; `;
@ -1507,6 +1687,11 @@ exports[`renders ./components/tabs/demo/position.md correctly 1`] = `
</div> </div>
</div> </div>
</div> </div>
<div
role="presentation"
style="width:0;height:0;overflow:hidden"
tabindex="0"
/>
<div <div
class="ant-tabs-content ant-tabs-content-animated" class="ant-tabs-content ant-tabs-content-animated"
style="margin-left:0%" style="margin-left:0%"
@ -1516,7 +1701,17 @@ exports[`renders ./components/tabs/demo/position.md correctly 1`] = `
class="ant-tabs-tabpane ant-tabs-tabpane-active" class="ant-tabs-tabpane ant-tabs-tabpane-active"
role="tabpanel" role="tabpanel"
> >
<div
role="presentation"
style="width:0;height:0;overflow:hidden"
tabindex="0"
/>
Content of Tab 1 Content of Tab 1
<div
role="presentation"
style="width:0;height:0;overflow:hidden"
tabindex="0"
/>
</div> </div>
<div <div
aria-hidden="true" aria-hidden="true"
@ -1529,6 +1724,11 @@ exports[`renders ./components/tabs/demo/position.md correctly 1`] = `
role="tabpanel" role="tabpanel"
/> />
</div> </div>
<div
role="presentation"
style="width:0;height:0;overflow:hidden"
tabindex="0"
/>
</div> </div>
</div> </div>
`; `;
@ -1704,6 +1904,11 @@ exports[`renders ./components/tabs/demo/size.md correctly 1`] = `
</div> </div>
</div> </div>
</div> </div>
<div
role="presentation"
style="width:0;height:0;overflow:hidden"
tabindex="0"
/>
<div <div
class="ant-tabs-content ant-tabs-content-animated" class="ant-tabs-content ant-tabs-content-animated"
style="margin-left:0%" style="margin-left:0%"
@ -1713,7 +1918,17 @@ exports[`renders ./components/tabs/demo/size.md correctly 1`] = `
class="ant-tabs-tabpane ant-tabs-tabpane-active" class="ant-tabs-tabpane ant-tabs-tabpane-active"
role="tabpanel" role="tabpanel"
> >
<div
role="presentation"
style="width:0;height:0;overflow:hidden"
tabindex="0"
/>
Content of tab 1 Content of tab 1
<div
role="presentation"
style="width:0;height:0;overflow:hidden"
tabindex="0"
/>
</div> </div>
<div <div
aria-hidden="true" aria-hidden="true"
@ -1726,6 +1941,11 @@ exports[`renders ./components/tabs/demo/size.md correctly 1`] = `
role="tabpanel" role="tabpanel"
/> />
</div> </div>
<div
role="presentation"
style="width:0;height:0;overflow:hidden"
tabindex="0"
/>
</div> </div>
</div> </div>
`; `;
@ -1947,6 +2167,11 @@ exports[`renders ./components/tabs/demo/slide.md correctly 1`] = `
</div> </div>
</div> </div>
</div> </div>
<div
role="presentation"
style="width:0;height:0;overflow:hidden"
tabindex="0"
/>
<div <div
class="ant-tabs-content ant-tabs-content-animated" class="ant-tabs-content ant-tabs-content-animated"
style="margin-left:0%" style="margin-left:0%"
@ -1956,7 +2181,17 @@ exports[`renders ./components/tabs/demo/slide.md correctly 1`] = `
class="ant-tabs-tabpane ant-tabs-tabpane-active" class="ant-tabs-tabpane ant-tabs-tabpane-active"
role="tabpanel" role="tabpanel"
> >
<div
role="presentation"
style="width:0;height:0;overflow:hidden"
tabindex="0"
/>
Content of tab 1 Content of tab 1
<div
role="presentation"
style="width:0;height:0;overflow:hidden"
tabindex="0"
/>
</div> </div>
<div <div
aria-hidden="true" aria-hidden="true"
@ -2009,6 +2244,11 @@ exports[`renders ./components/tabs/demo/slide.md correctly 1`] = `
role="tabpanel" role="tabpanel"
/> />
</div> </div>
<div
role="presentation"
style="width:0;height:0;overflow:hidden"
tabindex="0"
/>
</div> </div>
</div> </div>
`; `;

40
components/tabs/__tests__/__snapshots__/index.test.js.snap

@ -7,6 +7,11 @@ exports[`Tabs renderTabBar custom-tab-bar 1`] = `
<div> <div>
custom-tab-bar custom-tab-bar
</div> </div>
<div
role="presentation"
style="width:0;height:0;overflow:hidden"
tabindex="0"
/>
<div <div
class="ant-tabs-content ant-tabs-content-animated" class="ant-tabs-content ant-tabs-content-animated"
style="margin-left:0%" style="margin-left:0%"
@ -16,9 +21,24 @@ exports[`Tabs renderTabBar custom-tab-bar 1`] = `
class="ant-tabs-tabpane ant-tabs-tabpane-active" class="ant-tabs-tabpane ant-tabs-tabpane-active"
role="tabpanel" role="tabpanel"
> >
<div
role="presentation"
style="width:0;height:0;overflow:hidden"
tabindex="0"
/>
foo foo
<div
role="presentation"
style="width:0;height:0;overflow:hidden"
tabindex="0"
/>
</div> </div>
</div> </div>
<div
role="presentation"
style="width:0;height:0;overflow:hidden"
tabindex="0"
/>
</div> </div>
`; `;
@ -118,6 +138,11 @@ exports[`Tabs tabPosition remove card 1`] = `
xxx xxx
</div> </div>
</div> </div>
<div
role="presentation"
style="width:0;height:0;overflow:hidden"
tabindex="0"
/>
<div <div
class="ant-tabs-content ant-tabs-content-animated" class="ant-tabs-content ant-tabs-content-animated"
style="margin-top:0%" style="margin-top:0%"
@ -127,8 +152,23 @@ exports[`Tabs tabPosition remove card 1`] = `
class="ant-tabs-tabpane ant-tabs-tabpane-active" class="ant-tabs-tabpane ant-tabs-tabpane-active"
role="tabpanel" role="tabpanel"
> >
<div
role="presentation"
style="width:0;height:0;overflow:hidden"
tabindex="0"
/>
foo foo
<div
role="presentation"
style="width:0;height:0;overflow:hidden"
tabindex="0"
/>
</div> </div>
</div> </div>
<div
role="presentation"
style="width:0;height:0;overflow:hidden"
tabindex="0"
/>
</div> </div>
`; `;

Loading…
Cancel
Save