Skip to content

Commit

Permalink
New snapshots since the html structure has changed.
Browse files Browse the repository at this point in the history
  • Loading branch information
Elweyn committed Apr 11, 2024
1 parent 675aaa2 commit 8aca9e8
Show file tree
Hide file tree
Showing 8 changed files with 539 additions and 80 deletions.
37 changes: 0 additions & 37 deletions frontend/src/components/__snapshots__/PageShell.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -8,43 +8,6 @@ exports[`PageShell > renders 1`] = `
class="v-application__wrap"
>
<header
class="v-toolbar v-toolbar--flat v-toolbar--density-default v-theme--light v-locale--is-ltr v-app-bar"
style="top: 0px; z-index: 1004; transform: translateY(0%); position: fixed; left: 0px; width: calc(100% - 0px - 0px);"
>
<!---->
<div
class="v-toolbar__content"
style="height: 64px;"
>
<!---->
<!---->
<div
class="v-row"
>
<div
class="v-col"
>
<!--v-if-->
</div>
</div>
<!---->
</div>
<transition-stub
appear="false"
css="true"
name="expand-transition"
persisted="false"
>
<!---->
</transition-stub>
</header>
Page Content
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ exports[`LogoAvatar > renders 1`] = `
<img
alt=""
class="v-img__img v-img__img--cover"
src="/src/assets/it4c-logo2-clean-bg_alpha-128x128.png"
src="/src/assets/dreammall-logo.svg"
style="display: none;"
/>
</transition-stub>
Expand Down
40 changes: 40 additions & 0 deletions frontend/src/components/menu/__snapshots__/LogoImage.test.ts.snap
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html

exports[`LogoImage > renders Logo 1`] = `
<div
class="v-responsive v-img v-img--booting w-100 logo-medium"
data-v-f6be2607=""
>
<div
class="v-responsive__sizer"
/>
<transition-stub
appear="true"
css="true"
name="fade-transition"
persisted="false"
>
<img
class="v-img__img v-img__img--contain"
src="/src/assets/dreammall-logo.svg"
style="display: none;"
/>
</transition-stub>
<transition-stub
appear="false"
css="true"
name="fade-transition"
persisted="false"
>
<!---->
</transition-stub>
<!---->
<!---->
<!---->
<!---->
</div>
`;
101 changes: 75 additions & 26 deletions frontend/src/components/menu/__snapshots__/TopMenu.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -8,43 +8,92 @@ exports[`TopMenu > renders 1`] = `
class="v-application__wrap"
>
<header
class="v-toolbar v-toolbar--flat v-toolbar--density-default v-theme--light v-locale--is-ltr v-app-bar"
style="top: 0px; z-index: 1004; transform: translateY(0%); position: fixed; transition: none !important; left: 0px; width: calc(100% - 0px - 0px);"
<div
class="topmenu"
>
<!---->
<div
class="v-toolbar__content"
style="height: 64px;"
<header
class="v-toolbar v-toolbar--flat v-toolbar--density-default v-theme--light v-locale--is-ltr v-app-bar py-4"
style="top: 0px; z-index: 1004; transform: translateY(0%); position: fixed; transition: none !important; left: 0px; width: calc(100% - 0px - 0px);"
>
<!---->
<!---->
<div
class="v-row"
class="v-toolbar__content"
style=""
>
<!---->
<!---->
<div
class="v-col"
class="v-row"
>
<!--v-if-->
<div
class="v-col d-flex align-center"
>
<a
class="w-100 ml-8"
href="/"
>
<div
class="v-responsive v-img v-img--booting w-100 logo-medium"
data-v-f6be2607=""
>
<div
class="v-responsive__sizer"
/>
<transition-stub
appear="true"
css="true"
name="fade-transition"
persisted="false"
>
<img
class="v-img__img v-img__img--contain"
src="/src/assets/dreammall-logo.svg"
style="display: none;"
/>
</transition-stub>
<transition-stub
appear="false"
css="true"
name="fade-transition"
persisted="false"
>
<!---->
</transition-stub>
<!---->
<!---->
<!---->
<!---->
</div>
</a>
</div>
<div
class="v-col d-flex justify-end"
>
<!--v-if-->
</div>
</div>
<!---->
</div>
<!---->
</div>
<transition-stub
appear="false"
css="true"
name="expand-transition"
persisted="false"
>
<!---->
</transition-stub>
</header>
<transition-stub
appear="false"
css="true"
name="expand-transition"
persisted="false"
>
<!---->
</transition-stub>
</header>
</div>
</div>
</div>
Expand Down
101 changes: 97 additions & 4 deletions frontend/src/layouts/__snapshots__/DefaultLayout.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -9,22 +9,115 @@ exports[`LogoAvatar > renders 1`] = `
>
<main
class="v-main bg-grey-lighten-3"
style="--v-layout-left: 0px; --v-layout-right: 0px; --v-layout-top: 0px; --v-layout-bottom: 0px; transition: none !important;"
class="v-main bg-grey-lighten-3 main-layout"
data-v-75d0be1e=""
style="--v-layout-left: 0px; --v-layout-right: 0px; --v-layout-top: NaN; --v-layout-bottom: 0px; transition: none !important;"
>
<div
class="v-container v-locale--is-ltr"
class="topmenu"
data-v-75d0be1e=""
>
<header
class="v-toolbar v-toolbar--flat v-toolbar--density-default v-theme--light v-locale--is-ltr v-app-bar py-4"
style="top: 0px; z-index: 1004; transform: translateY(0%); position: fixed; transition: none !important; left: 0px; width: calc(100% - 0px - 0px);"
>
<!---->
<div
class="v-toolbar__content"
style=""
>
<!---->
<!---->
<div
class="v-row"
>
<div
class="v-col d-flex align-center"
>
<a
class="w-100 ml-8"
href="/"
>
<div
class="v-responsive v-img v-img--booting w-100 logo-medium"
data-v-f6be2607=""
>
<div
class="v-responsive__sizer"
/>
<transition-stub
appear="true"
css="true"
name="fade-transition"
persisted="false"
>
<img
class="v-img__img v-img__img--contain"
src="/src/assets/dreammall-logo.svg"
style="display: none;"
/>
</transition-stub>
<transition-stub
appear="false"
css="true"
name="fade-transition"
persisted="false"
>
<!---->
</transition-stub>
<!---->
<!---->
<!---->
<!---->
</div>
</a>
</div>
<div
class="v-col d-flex justify-end"
>
<!--v-if-->
</div>
</div>
<!---->
</div>
<transition-stub
appear="false"
css="true"
name="expand-transition"
persisted="false"
>
<!---->
</transition-stub>
</header>
</div>
<div
class="v-container v-container--fluid v-locale--is-ltr page-container px-8"
data-v-75d0be1e=""
>
<div
class="v-row"
data-v-75d0be1e=""
>
<!--v-if-->
<div
class="v-col"
class="v-col pa-0 pa-sm-1 pt-0"
data-v-75d0be1e=""
>
<div
class="v-sheet v-theme--light v-sheet--rounded pa-3"
data-v-75d0be1e=""
style="top: 90px;"
>
Expand Down
Loading

0 comments on commit 8aca9e8

Please sign in to comment.