Skip to content

Commit

Permalink
update snaps for dropdown deprecation refactor
Browse files Browse the repository at this point in the history
Signed-off-by: gitdallas <[email protected]>
  • Loading branch information
gitdallas committed Sep 25, 2023
1 parent 724c723 commit 18a4a8d
Show file tree
Hide file tree
Showing 3 changed files with 126 additions and 148 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,65 +5,73 @@ exports[`MenuActions Renders without crashing 1`] = `
"asFragment": [Function],
"baseElement": <body>
<div>
<div
class="pf-v5-c-dropdown"
data-ouia-component-id="OUIA-Generated-Dropdown-1"
data-ouia-component-type="PF5/Dropdown"
data-ouia-safe="true"
>
<button
aria-expanded="false"
aria-haspopup="true"
class="pf-v5-c-dropdown__toggle"
data-ouia-component-id="OUIA-Generated-DropdownToggle-1"
data-ouia-component-type="PF5/DropdownToggle"
data-ouia-safe="true"
id="pf-dropdown-toggle-id-0"
type="button"
>
<span
class="pf-v5-c-dropdown__toggle-text"
>
Actions
</span>
<span
class="pf-v5-c-dropdown__toggle-icon"
>
<test-file-stub />
</span>
</button>
</div>
</div>
</body>,
"container": <div>
<div
class="pf-v5-c-dropdown"
data-ouia-component-id="OUIA-Generated-Dropdown-1"
data-ouia-component-type="PF5/Dropdown"
data-ouia-safe="true"
>
<button
aria-expanded="false"
aria-haspopup="true"
class="pf-v5-c-dropdown__toggle"
data-ouia-component-id="OUIA-Generated-DropdownToggle-1"
data-ouia-component-type="PF5/DropdownToggle"
data-ouia-safe="true"
id="pf-dropdown-toggle-id-0"
class="pf-v5-c-menu-toggle"
type="button"
>
<span
class="pf-v5-c-dropdown__toggle-text"
class="pf-v5-c-menu-toggle__text"
>
Actions
</span>
<span
class="pf-v5-c-dropdown__toggle-icon"
class="pf-v5-c-menu-toggle__controls"
>
<test-file-stub />
<span
class="pf-v5-c-menu-toggle__toggle-icon"
>
<svg
aria-hidden="true"
class="pf-v5-svg"
fill="currentColor"
height="1em"
role="img"
viewBox="0 0 320 512"
width="1em"
>
<path
d="M31.3 192h257.3c17.8 0 26.7 21.5 14.1 34.1L174.1 354.8c-7.8 7.8-20.5 7.8-28.3 0L17.2 226.1C4.6 213.5 13.5 192 31.3 192z"
/>
</svg>
</span>
</span>
</button>
</div>
</body>,
"container": <div>
<button
aria-expanded="false"
class="pf-v5-c-menu-toggle"
type="button"
>
<span
class="pf-v5-c-menu-toggle__text"
>
Actions
</span>
<span
class="pf-v5-c-menu-toggle__controls"
>
<span
class="pf-v5-c-menu-toggle__toggle-icon"
>
<svg
aria-hidden="true"
class="pf-v5-svg"
fill="currentColor"
height="1em"
role="img"
viewBox="0 0 320 512"
width="1em"
>
<path
d="M31.3 192h257.3c17.8 0 26.7 21.5 14.1 34.1L174.1 354.8c-7.8 7.8-20.5 7.8-28.3 0L17.2 226.1C4.6 213.5 13.5 192 31.3 192z"
/>
</svg>
</span>
</span>
</button>
</div>,
"debug": [Function],
"findAllByAltText": [Function],
Expand Down
100 changes: 54 additions & 46 deletions client/src/app/components/tests/__snapshots__/PageHeader.test.tsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -97,34 +97,38 @@ exports[`PageHeader Renders without crashing 1`] = `
<div
class="pf-v5-l-split__item"
>
<div
class="pf-v5-c-dropdown"
data-ouia-component-id="OUIA-Generated-Dropdown-1"
data-ouia-component-type="PF5/Dropdown"
data-ouia-safe="true"
<button
aria-expanded="false"
class="pf-v5-c-menu-toggle"
type="button"
>
<button
aria-expanded="false"
aria-haspopup="true"
class="pf-v5-c-dropdown__toggle"
data-ouia-component-id="OUIA-Generated-DropdownToggle-1"
data-ouia-component-type="PF5/DropdownToggle"
data-ouia-safe="true"
id="pf-dropdown-toggle-id-0"
type="button"
<span
class="pf-v5-c-menu-toggle__text"
>
Actions
</span>
<span
class="pf-v5-c-menu-toggle__controls"
>
<span
class="pf-v5-c-dropdown__toggle-text"
>
Actions
</span>
<span
class="pf-v5-c-dropdown__toggle-icon"
class="pf-v5-c-menu-toggle__toggle-icon"
>
<test-file-stub />
<svg
aria-hidden="true"
class="pf-v5-svg"
fill="currentColor"
height="1em"
role="img"
viewBox="0 0 320 512"
width="1em"
>
<path
d="M31.3 192h257.3c17.8 0 26.7 21.5 14.1 34.1L174.1 354.8c-7.8 7.8-20.5 7.8-28.3 0L17.2 226.1C4.6 213.5 13.5 192 31.3 192z"
/>
</svg>
</span>
</button>
</div>
</span>
</button>
</div>
</div>
</div>
Expand Down Expand Up @@ -290,34 +294,38 @@ exports[`PageHeader Renders without crashing 1`] = `
<div
class="pf-v5-l-split__item"
>
<div
class="pf-v5-c-dropdown"
data-ouia-component-id="OUIA-Generated-Dropdown-1"
data-ouia-component-type="PF5/Dropdown"
data-ouia-safe="true"
<button
aria-expanded="false"
class="pf-v5-c-menu-toggle"
type="button"
>
<button
aria-expanded="false"
aria-haspopup="true"
class="pf-v5-c-dropdown__toggle"
data-ouia-component-id="OUIA-Generated-DropdownToggle-1"
data-ouia-component-type="PF5/DropdownToggle"
data-ouia-safe="true"
id="pf-dropdown-toggle-id-0"
type="button"
<span
class="pf-v5-c-menu-toggle__text"
>
Actions
</span>
<span
class="pf-v5-c-menu-toggle__controls"
>
<span
class="pf-v5-c-dropdown__toggle-text"
>
Actions
</span>
<span
class="pf-v5-c-dropdown__toggle-icon"
class="pf-v5-c-menu-toggle__toggle-icon"
>
<test-file-stub />
<svg
aria-hidden="true"
class="pf-v5-svg"
fill="currentColor"
height="1em"
role="img"
viewBox="0 0 320 512"
width="1em"
>
<path
d="M31.3 192h257.3c17.8 0 26.7 21.5 14.1 34.1L174.1 354.8c-7.8 7.8-20.5 7.8-28.3 0L17.2 226.1C4.6 213.5 13.5 192 31.3 192z"
/>
</svg>
</span>
</button>
</div>
</span>
</button>
</div>
</div>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -93,35 +93,16 @@ exports[`Test snapshot 1`] = `
<div
class="pf-v5-c-toolbar__item pf-m-hidden-on-lg"
>
<div
class="pf-v5-c-dropdown pf-m-align-right"
data-ouia-component-id="OUIA-Generated-Dropdown-1"
data-ouia-component-type="PF5/Dropdown"
data-ouia-safe="true"
<button
aria-expanded="false"
aria-label="mobile dropdown"
class="pf-v5-c-menu-toggle pf-m-plain"
type="button"
>
<button
aria-expanded="false"
aria-haspopup="true"
aria-label="Actions"
class="pf-v5-c-dropdown__toggle pf-m-plain"
id="pf-dropdown-toggle-id-0"
type="button"
>
<svg
aria-hidden="true"
class="pf-v5-svg"
fill="currentColor"
height="1em"
role="img"
viewBox="0 0 192 512"
width="1em"
>
<path
d="M96 184c39.8 0 72 32.2 72 72s-32.2 72-72 72-72-32.2-72-72 32.2-72 72-72zM24 80c0 39.8 32.2 72 72 72s72-32.2 72-72S135.8 8 96 8 24 40.2 24 80zm0 352c0 39.8 32.2 72 72 72s72-32.2 72-72-32.2-72-72-72-72 32.2-72 72z"
/>
</svg>
</button>
</div>
<test-file-stub
aria-hidden="true"
/>
</button>
</div>
</div>
</div>
Expand Down Expand Up @@ -236,35 +217,16 @@ exports[`Test snapshot 1`] = `
<div
class="pf-v5-c-toolbar__item pf-m-hidden-on-lg"
>
<div
class="pf-v5-c-dropdown pf-m-align-right"
data-ouia-component-id="OUIA-Generated-Dropdown-1"
data-ouia-component-type="PF5/Dropdown"
data-ouia-safe="true"
<button
aria-expanded="false"
aria-label="mobile dropdown"
class="pf-v5-c-menu-toggle pf-m-plain"
type="button"
>
<button
aria-expanded="false"
aria-haspopup="true"
aria-label="Actions"
class="pf-v5-c-dropdown__toggle pf-m-plain"
id="pf-dropdown-toggle-id-0"
type="button"
>
<svg
aria-hidden="true"
class="pf-v5-svg"
fill="currentColor"
height="1em"
role="img"
viewBox="0 0 192 512"
width="1em"
>
<path
d="M96 184c39.8 0 72 32.2 72 72s-32.2 72-72 72-72-32.2-72-72 32.2-72 72-72zM24 80c0 39.8 32.2 72 72 72s72-32.2 72-72S135.8 8 96 8 24 40.2 24 80zm0 352c0 39.8 32.2 72 72 72s72-32.2 72-72-32.2-72-72-72-72 32.2-72 72z"
/>
</svg>
</button>
</div>
<test-file-stub
aria-hidden="true"
/>
</button>
</div>
</div>
</div>
Expand Down

0 comments on commit 18a4a8d

Please sign in to comment.