Skip to content

Commit

Permalink
[ONL-7529] update snapshots
Browse files Browse the repository at this point in the history
  • Loading branch information
raulwwq0 committed Jun 22, 2023
1 parent 372bd33 commit c785c0f
Show file tree
Hide file tree
Showing 9 changed files with 353 additions and 91 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -836,7 +836,13 @@ exports[`EcCurrencyFilter should render correctly 1`] = `
<main
class="ec-submenu__main"
>
<transition-group-stub>
<transition-group-stub
appear="false"
css="true"
name="ec-submenu__fade"
persisted="false"
tag="div"
>
<div
data-test="ec-submenu__panel-0"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`EcFullScreenOverlay #slots #content - should be rendered when passed 1`] = `
<transition-stub>
<transition-stub
appear="false"
css="true"
name="ec-full-screen-overlay__fade"
persisted="false"
>
<div
class="ec-full-screen-overlay tw-bg-gray-8"
data-test="ec-full-screen-overlay"
Expand All @@ -14,7 +19,12 @@ exports[`EcFullScreenOverlay #slots #content - should be rendered when passed 1`
`;

exports[`EcFullScreenOverlay #slots #header - should be rendered when passed 1`] = `
<transition-stub>
<transition-stub
appear="false"
css="true"
name="ec-full-screen-overlay__fade"
persisted="false"
>
<div
class="ec-full-screen-overlay tw-bg-gray-8"
data-test="ec-full-screen-overlay"
Expand Down Expand Up @@ -66,7 +76,12 @@ exports[`EcFullScreenOverlay #slots #header - should be rendered when passed 1`]
`;

exports[`EcFullScreenOverlay #slots #main - should be rendered when passed 1`] = `
<transition-stub>
<transition-stub
appear="false"
css="true"
name="ec-full-screen-overlay__fade"
persisted="false"
>
<div
class="ec-full-screen-overlay tw-bg-gray-8"
data-test="ec-full-screen-overlay"
Expand Down Expand Up @@ -184,7 +199,12 @@ exports[`EcFullScreenOverlay :props :title - should render the title 1`] = `
`;

exports[`EcFullScreenOverlay should render as expected 1`] = `
<transition-stub>
<transition-stub
appear="false"
css="true"
name="ec-full-screen-overlay__fade"
persisted="false"
>
<div
class="ec-full-screen-overlay tw-bg-gray-8"
data-test="ec-full-screen-overlay"
Expand Down
98 changes: 84 additions & 14 deletions src/components/ec-menu/__snapshots__/ec-menu.spec.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,12 @@ exports[`EcMenu should attach custom listeners passed in the link definition 1`]
xlink:href="#ec-foo-icon"
/>
</svg>
<transition-stub>
<transition-stub
appear="false"
css="true"
name="ec-navigation-link__text-fade"
persisted="true"
>
<span
class="ec-navigation-link__text"
data-test="ec-navigation-link__text"
Expand Down Expand Up @@ -65,7 +70,12 @@ exports[`EcMenu should not render all items as compact when horizontal is not se
xlink:href="#ec-foo-icon"
/>
</svg>
<transition-stub>
<transition-stub
appear="false"
css="true"
name="ec-navigation-link__text-fade"
persisted="true"
>
<span
class="ec-navigation-link__text"
data-test="ec-navigation-link__text"
Expand Down Expand Up @@ -94,7 +104,12 @@ exports[`EcMenu should not render all items as compact when horizontal is not se
xlink:href="#ec-baz-icon"
/>
</svg>
<transition-stub>
<transition-stub
appear="false"
css="true"
name="ec-navigation-link__text-fade"
persisted="true"
>
<span
class="ec-navigation-link__text"
data-test="ec-navigation-link__text"
Expand Down Expand Up @@ -139,7 +154,12 @@ exports[`EcMenu should render all items as compact when is horizontal 1`] = `
xlink:href="#ec-foo-icon"
/>
</svg>
<transition-stub>
<transition-stub
appear="false"
css="true"
name="ec-navigation-link__text-fade"
persisted="true"
>
<span
class="ec-navigation-link__text"
data-test="ec-navigation-link__text"
Expand Down Expand Up @@ -168,7 +188,12 @@ exports[`EcMenu should render all items as compact when is horizontal 1`] = `
xlink:href="#ec-baz-icon"
/>
</svg>
<transition-stub>
<transition-stub
appear="false"
css="true"
name="ec-navigation-link__text-fade"
persisted="true"
>
<span
class="ec-navigation-link__text"
data-test="ec-navigation-link__text"
Expand Down Expand Up @@ -207,7 +232,12 @@ exports[`EcMenu should render as collapsed when isCollapsed is passed into 1`] =
xlink:href="#ec-foo-icon"
/>
</svg>
<transition-stub>
<transition-stub
appear="false"
css="true"
name="ec-navigation-link__text-fade"
persisted="true"
>
<span
class="ec-navigation-link__text"
data-test="ec-navigation-link__text"
Expand Down Expand Up @@ -237,7 +267,12 @@ exports[`EcMenu should render as collapsed when isCollapsed is passed into 1`] =
xlink:href="#ec-baz-icon"
/>
</svg>
<transition-stub>
<transition-stub
appear="false"
css="true"
name="ec-navigation-link__text-fade"
persisted="true"
>
<span
class="ec-navigation-link__text"
data-test="ec-navigation-link__text"
Expand Down Expand Up @@ -277,7 +312,12 @@ exports[`EcMenu should render as expanded by default 1`] = `
xlink:href="#ec-foo-icon"
/>
</svg>
<transition-stub>
<transition-stub
appear="false"
css="true"
name="ec-navigation-link__text-fade"
persisted="true"
>
<span
class="ec-navigation-link__text"
data-test="ec-navigation-link__text"
Expand Down Expand Up @@ -306,7 +346,12 @@ exports[`EcMenu should render as expanded by default 1`] = `
xlink:href="#ec-baz-icon"
/>
</svg>
<transition-stub>
<transition-stub
appear="false"
css="true"
name="ec-navigation-link__text-fade"
persisted="true"
>
<span
class="ec-navigation-link__text"
data-test="ec-navigation-link__text"
Expand Down Expand Up @@ -345,7 +390,12 @@ exports[`EcMenu should render as expected when set to horizontal 1`] = `
xlink:href="#ec-foo-icon"
/>
</svg>
<transition-stub>
<transition-stub
appear="false"
css="true"
name="ec-navigation-link__text-fade"
persisted="true"
>
<span
class="ec-navigation-link__text"
data-test="ec-navigation-link__text"
Expand Down Expand Up @@ -384,7 +434,12 @@ exports[`EcMenu should render as expected when set to isReverse 1`] = `
xlink:href="#ec-foo-icon"
/>
</svg>
<transition-stub>
<transition-stub
appear="false"
css="true"
name="ec-navigation-link__text-fade"
persisted="true"
>
<span
class="ec-navigation-link__text"
data-test="ec-navigation-link__text"
Expand Down Expand Up @@ -423,7 +478,12 @@ exports[`EcMenu should render as expected when set to isReverse and horizontal 1
xlink:href="#ec-foo-icon"
/>
</svg>
<transition-stub>
<transition-stub
appear="false"
css="true"
name="ec-navigation-link__text-fade"
persisted="true"
>
<span
class="ec-navigation-link__text"
data-test="ec-navigation-link__text"
Expand Down Expand Up @@ -462,7 +522,12 @@ exports[`EcMenu should render only links with a url property 1`] = `
xlink:href="#ec-foo-icon"
/>
</svg>
<transition-stub>
<transition-stub
appear="false"
css="true"
name="ec-navigation-link__text-fade"
persisted="true"
>
<span
class="ec-navigation-link__text"
data-test="ec-navigation-link__text"
Expand Down Expand Up @@ -491,7 +556,12 @@ exports[`EcMenu should render only links with a url property 1`] = `
xlink:href="#ec-baz-icon"
/>
</svg>
<transition-stub>
<transition-stub
appear="false"
css="true"
name="ec-navigation-link__text-fade"
persisted="true"
>
<span
class="ec-navigation-link__text"
data-test="ec-navigation-link__text"
Expand Down
35 changes: 30 additions & 5 deletions src/components/ec-modal/__snapshots__/ec-modal.spec.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -146,13 +146,23 @@ exports[`EcModal should not render close button when isClosable is set to false
`;

exports[`EcModal should not render the modal if "show" is not set to true 1`] = `
<transition-stub>
<transition-stub
appear="false"
css="true"
name="ec-modal__fade"
persisted="false"
>
<!--v-if-->
</transition-stub>
`;

exports[`EcModal should render basic modal 1`] = `
<transition-stub>
<transition-stub
appear="false"
css="true"
name="ec-modal__fade"
persisted="false"
>
<div
class="ec-modal"
data-test="ec-modal"
Expand Down Expand Up @@ -569,13 +579,23 @@ DOMWrapper {
`;

exports[`EcModal v-model should not render the modal when we pass to model false 1`] = `
<transition-stub>
<transition-stub
appear="false"
css="true"
name="ec-modal__fade"
persisted="false"
>
<!--v-if-->
</transition-stub>
`;

exports[`EcModal v-model should render the modal when we pass to model true 1`] = `
<transition-stub>
<transition-stub
appear="false"
css="true"
name="ec-modal__fade"
persisted="false"
>
<div
class="ec-modal"
data-test="ec-modal"
Expand Down Expand Up @@ -621,7 +641,12 @@ exports[`EcModal v-model should render the modal when we pass to model true 1`]
`;

exports[`EcModal v-model should render the modal when we pass to model true 2`] = `
<transition-stub>
<transition-stub
appear="false"
css="true"
name="ec-modal__fade"
persisted="false"
>
<!--v-if-->
</transition-stub>
`;
Expand Down
Loading

0 comments on commit c785c0f

Please sign in to comment.