-
Notifications
You must be signed in to change notification settings - Fork 159
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0fb1630
commit 2d649d8
Showing
1 changed file
with
10 additions
and
10 deletions.
There are no files selected for viewing
20 changes: 10 additions & 10 deletions
20
packages/web-pkg/tests/unit/components/__snapshots__/AppTopBar.spec.ts.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,37 +1,37 @@ | ||
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html | ||
|
||
exports[`AppTopBar > if a resource is present > renders a resource and dropdownActions (if given) and a close button 1`] = ` | ||
"<portal to="app.runtime.header.left"> | ||
<div class="oc-app-top-bar oc-flex"><span class="oc-app-top-bar-inner oc-px-m oc-flex oc-flex-middle oc-flex-between"><div class="open-file-bar oc-flex"><resource-list-item-stub resource="undefined" pathprefix="Shares/test" ispathdisplayed="false" parentfoldername="test" parentfolderlinkiconadditionalattributes="[object Object]" isextensiondisplayed="true" isthumbnaildisplayed="false" isicondisplayed="true" isresourceclickable="true" id="app-top-bar-resource"></resource-list-item-stub></div> <div class="oc-flex main-actions"><!--v-if--> <oc-button-stub type="button" disabled="false" size="medium" arialabel="Show context menu" submit="button" variation="brand" appearance="raw-inverse" justifycontent="center" gapsize="medium" showspinner="false" id="oc-openfile-contextmenu-trigger" class="oc-p-xs"></oc-button-stub> <oc-drop-stub dropid="oc-openfile-contextmenu" popperoptions="[object Object]" toggle="#oc-openfile-contextmenu-trigger" position="bottom-start" mode="click" closeonclick="true" isnested="false" paddingsize="small"></oc-drop-stub> <oc-button-stub type="button" disabled="false" size="medium" arialabel="Close" submit="button" variation="brand" appearance="raw-inverse" justifycontent="center" gapsize="medium" showspinner="false" id="app-top-bar-close"></oc-button-stub></div></span></div> | ||
"<portal to="app.runtime.header.left" dropdownactions="undefined"> | ||
<div class="oc-app-top-bar oc-flex"><span class="oc-app-top-bar-inner oc-px-m oc-flex oc-flex-middle oc-flex-between"><div class="open-file-bar oc-flex"><resource-list-item-stub resource="undefined" pathprefix="Shares/test" ispathdisplayed="false" parentfoldername="test" parentfolderlinkiconadditionalattributes="[object Object]" isextensiondisplayed="true" isthumbnaildisplayed="false" isicondisplayed="true" isresourceclickable="true" id="app-top-bar-resource"></resource-list-item-stub></div> <div class="oc-flex main-actions"><!--v-if--> <!--v-if--> <oc-button-stub type="button" disabled="false" size="medium" arialabel="Close" submit="button" variation="brand" appearance="raw-inverse" justifycontent="center" gapsize="medium" showspinner="false" id="app-top-bar-close"></oc-button-stub></div></span></div> | ||
</portal>" | ||
`; | ||
|
||
exports[`AppTopBar > if a resource is present > renders a resource and dropdownActions as well as mainActions (if both are passed) and a close button 1`] = ` | ||
"<portal to="app.runtime.header.left"> | ||
<div class="oc-app-top-bar oc-flex"><span class="oc-app-top-bar-inner oc-px-m oc-flex oc-flex-middle oc-flex-between"><div class="open-file-bar oc-flex"><resource-list-item-stub resource="undefined" pathprefix="Shares/test" ispathdisplayed="false" parentfoldername="test" parentfolderlinkiconadditionalattributes="[object Object]" isextensiondisplayed="true" isthumbnaildisplayed="false" isicondisplayed="true" isresourceclickable="true" id="app-top-bar-resource"></resource-list-item-stub></div> <div class="oc-flex main-actions"><context-action-menu-stub menusections="[object Object]" actionoptions="[object Object]" appearance="raw-inverse" variation="brand"></context-action-menu-stub> <oc-button-stub type="button" disabled="false" size="medium" arialabel="Show context menu" submit="button" variation="brand" appearance="raw-inverse" justifycontent="center" gapsize="medium" showspinner="false" id="oc-openfile-contextmenu-trigger" class="oc-p-xs"></oc-button-stub> <oc-drop-stub dropid="oc-openfile-contextmenu" popperoptions="[object Object]" toggle="#oc-openfile-contextmenu-trigger" position="bottom-start" mode="click" closeonclick="true" isnested="false" paddingsize="small"></oc-drop-stub> <oc-button-stub type="button" disabled="false" size="medium" arialabel="Close" submit="button" variation="brand" appearance="raw-inverse" justifycontent="center" gapsize="medium" showspinner="false" id="app-top-bar-close"></oc-button-stub></div></span></div> | ||
"<portal to="app.runtime.header.left" dropdownactions="undefined"> | ||
<div class="oc-app-top-bar oc-flex"><span class="oc-app-top-bar-inner oc-px-m oc-flex oc-flex-middle oc-flex-between"><div class="open-file-bar oc-flex"><resource-list-item-stub resource="undefined" pathprefix="Shares/test" ispathdisplayed="false" parentfoldername="test" parentfolderlinkiconadditionalattributes="[object Object]" isextensiondisplayed="true" isthumbnaildisplayed="false" isicondisplayed="true" isresourceclickable="true" id="app-top-bar-resource"></resource-list-item-stub></div> <div class="oc-flex main-actions"><!--v-if--> <context-action-menu-stub menusections="[object Object]" actionoptions="[object Object]" appearance="raw-inverse" variation="brand"></context-action-menu-stub> <oc-button-stub type="button" disabled="false" size="medium" arialabel="Close" submit="button" variation="brand" appearance="raw-inverse" justifycontent="center" gapsize="medium" showspinner="false" id="app-top-bar-close"></oc-button-stub></div></span></div> | ||
</portal>" | ||
`; | ||
|
||
exports[`AppTopBar > if a resource is present > renders a resource and mainActions (if given) and a close button 1`] = ` | ||
"<portal to="app.runtime.header.left"> | ||
<div class="oc-app-top-bar oc-flex"><span class="oc-app-top-bar-inner oc-px-m oc-flex oc-flex-middle oc-flex-between"><div class="open-file-bar oc-flex"><resource-list-item-stub resource="undefined" pathprefix="Shares/test" ispathdisplayed="false" parentfoldername="test" parentfolderlinkiconadditionalattributes="[object Object]" isextensiondisplayed="true" isthumbnaildisplayed="false" isicondisplayed="true" isresourceclickable="true" id="app-top-bar-resource"></resource-list-item-stub></div> <div class="oc-flex main-actions"><context-action-menu-stub menusections="[object Object]" actionoptions="[object Object]" appearance="raw-inverse" variation="brand"></context-action-menu-stub> <!--v-if--> <oc-button-stub type="button" disabled="false" size="medium" arialabel="Close" submit="button" variation="brand" appearance="raw-inverse" justifycontent="center" gapsize="medium" showspinner="false" id="app-top-bar-close"></oc-button-stub></div></span></div> | ||
"<portal to="app.runtime.header.left" dropdownactions=""> | ||
<div class="oc-app-top-bar oc-flex"><span class="oc-app-top-bar-inner oc-px-m oc-flex oc-flex-middle oc-flex-between"><div class="open-file-bar oc-flex"><resource-list-item-stub resource="undefined" pathprefix="Shares/test" ispathdisplayed="false" parentfoldername="test" parentfolderlinkiconadditionalattributes="[object Object]" isextensiondisplayed="true" isthumbnaildisplayed="false" isicondisplayed="true" isresourceclickable="true" id="app-top-bar-resource"></resource-list-item-stub></div> <div class="oc-flex main-actions"><!--v-if--> <context-action-menu-stub menusections="[object Object]" actionoptions="[object Object]" appearance="raw-inverse" variation="brand"></context-action-menu-stub> <oc-button-stub type="button" disabled="false" size="medium" arialabel="Close" submit="button" variation="brand" appearance="raw-inverse" justifycontent="center" gapsize="medium" showspinner="false" id="app-top-bar-close"></oc-button-stub></div></span></div> | ||
</portal>" | ||
`; | ||
|
||
exports[`AppTopBar > if a resource is present > renders a resource and no actions (if none given) and a close button 1`] = ` | ||
"<portal to="app.runtime.header.left"> | ||
"<portal to="app.runtime.header.left" dropdownactions=""> | ||
<div class="oc-app-top-bar oc-flex"><span class="oc-app-top-bar-inner oc-px-m oc-flex oc-flex-middle oc-flex-between"><div class="open-file-bar oc-flex"><resource-list-item-stub resource="undefined" pathprefix="Shares/test" ispathdisplayed="false" parentfoldername="test" parentfolderlinkiconadditionalattributes="[object Object]" isextensiondisplayed="true" isthumbnaildisplayed="false" isicondisplayed="true" isresourceclickable="true" id="app-top-bar-resource"></resource-list-item-stub></div> <div class="oc-flex main-actions"><!--v-if--> <!--v-if--> <oc-button-stub type="button" disabled="false" size="medium" arialabel="Close" submit="button" variation="brand" appearance="raw-inverse" justifycontent="center" gapsize="medium" showspinner="false" id="app-top-bar-close"></oc-button-stub></div></span></div> | ||
</portal>" | ||
`; | ||
|
||
exports[`AppTopBar > if a resource is present > renders a resource without file extension if areFileExtensionsShown is set to false 1`] = ` | ||
"<portal to="app.runtime.header.left"> | ||
<div class="oc-app-top-bar oc-flex"><span class="oc-app-top-bar-inner oc-px-m oc-flex oc-flex-middle oc-flex-between"><div class="open-file-bar oc-flex"><resource-list-item-stub resource="undefined" pathprefix="Shares/test" ispathdisplayed="false" parentfoldername="test" parentfolderlinkiconadditionalattributes="[object Object]" isextensiondisplayed="false" isthumbnaildisplayed="false" isicondisplayed="true" isresourceclickable="true" id="app-top-bar-resource"></resource-list-item-stub></div> <div class="oc-flex main-actions"><context-action-menu-stub menusections="[object Object]" actionoptions="[object Object]" appearance="raw-inverse" variation="brand"></context-action-menu-stub> <oc-button-stub type="button" disabled="false" size="medium" arialabel="Show context menu" submit="button" variation="brand" appearance="raw-inverse" justifycontent="center" gapsize="medium" showspinner="false" id="oc-openfile-contextmenu-trigger" class="oc-p-xs"></oc-button-stub> <oc-drop-stub dropid="oc-openfile-contextmenu" popperoptions="[object Object]" toggle="#oc-openfile-contextmenu-trigger" position="bottom-start" mode="click" closeonclick="true" isnested="false" paddingsize="small"></oc-drop-stub> <oc-button-stub type="button" disabled="false" size="medium" arialabel="Close" submit="button" variation="brand" appearance="raw-inverse" justifycontent="center" gapsize="medium" showspinner="false" id="app-top-bar-close"></oc-button-stub></div></span></div> | ||
"<portal to="app.runtime.header.left" dropdownactions="undefined"> | ||
<div class="oc-app-top-bar oc-flex"><span class="oc-app-top-bar-inner oc-px-m oc-flex oc-flex-middle oc-flex-between"><div class="open-file-bar oc-flex"><resource-list-item-stub resource="undefined" pathprefix="Shares/test" ispathdisplayed="false" parentfoldername="test" parentfolderlinkiconadditionalattributes="[object Object]" isextensiondisplayed="false" isthumbnaildisplayed="false" isicondisplayed="true" isresourceclickable="true" id="app-top-bar-resource"></resource-list-item-stub></div> <div class="oc-flex main-actions"><!--v-if--> <context-action-menu-stub menusections="[object Object]" actionoptions="[object Object]" appearance="raw-inverse" variation="brand"></context-action-menu-stub> <oc-button-stub type="button" disabled="false" size="medium" arialabel="Close" submit="button" variation="brand" appearance="raw-inverse" justifycontent="center" gapsize="medium" showspinner="false" id="app-top-bar-close"></oc-button-stub></div></span></div> | ||
</portal>" | ||
`; | ||
|
||
exports[`AppTopBar > if no resource is present > renders only a close button 1`] = ` | ||
"<portal to="app.runtime.header.left"> | ||
"<portal to="app.runtime.header.left" dropdownactions=""> | ||
<div class="oc-app-top-bar oc-flex"><span class="oc-app-top-bar-inner oc-px-m oc-flex oc-flex-middle oc-flex-between"><div class="open-file-bar oc-flex"><resource-list-item-stub resource="undefined" pathprefix="Shares/test" ispathdisplayed="false" parentfoldername="test" parentfolderlinkiconadditionalattributes="[object Object]" isextensiondisplayed="true" isthumbnaildisplayed="false" isicondisplayed="true" isresourceclickable="true" id="app-top-bar-resource"></resource-list-item-stub></div> <div class="oc-flex main-actions"><!--v-if--> <!--v-if--> <oc-button-stub type="button" disabled="false" size="medium" arialabel="Close" submit="button" variation="brand" appearance="raw-inverse" justifycontent="center" gapsize="medium" showspinner="false" id="app-top-bar-close"></oc-button-stub></div></span></div> | ||
</portal>" | ||
`; |