Skip to content

Commit

Permalink
updating test snapshoots for button_content.tsx
Browse files Browse the repository at this point in the history
Signed-off-by: Samuel Valdes Gutierrez <[email protected]>
  • Loading branch information
BigSamu committed Dec 7, 2023
1 parent 80b7feb commit a9ecbf9
Show file tree
Hide file tree
Showing 22 changed files with 242 additions and 729 deletions.
24 changes: 6 additions & 18 deletions src/components/accessibility/__snapshots__/skip_link.test.tsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,7 @@ exports[`OuiSkipLink is rendered 1`] = `
<span
class="ouiButtonContent ouiButton__content"
>
<span
class=""
/>
<span />
<span
class="ouiButton__text"
>
Expand All @@ -32,9 +30,7 @@ exports[`OuiSkipLink props onClick is rendered 1`] = `
<span
class="ouiButtonContent ouiButton__content"
>
<span
class=""
/>
<span />
<span
class="ouiButton__text"
/>
Expand All @@ -51,9 +47,7 @@ exports[`OuiSkipLink props position absolute is rendered 1`] = `
<span
class="ouiButtonContent ouiButton__content"
>
<span
class=""
/>
<span />
<span
class="ouiButton__text"
/>
Expand All @@ -71,9 +65,7 @@ exports[`OuiSkipLink props position fixed is rendered 1`] = `
<span
class="ouiButtonContent ouiButton__content"
>
<span
class=""
/>
<span />
<span
class="ouiButton__text"
/>
Expand All @@ -90,9 +82,7 @@ exports[`OuiSkipLink props position static is rendered 1`] = `
<span
class="ouiButtonContent ouiButton__content"
>
<span
class=""
/>
<span />
<span
class="ouiButton__text"
/>
Expand All @@ -110,9 +100,7 @@ exports[`OuiSkipLink props tabIndex is rendered 1`] = `
<span
class="ouiButtonContent ouiButton__content"
>
<span
class=""
/>
<span />
<span
class="ouiButton__text"
/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -418,9 +418,7 @@ exports[`OuiInMemoryTable behavior pagination 1`] = `
<span
className="ouiButtonContent ouiButtonContent--iconRight ouiButtonEmpty__content"
>
<span
className=""
>
<span>
<OuiIcon
className="ouiButtonContent__icon"
color="inherit"
Expand Down Expand Up @@ -591,9 +589,7 @@ exports[`OuiInMemoryTable behavior pagination 1`] = `
<span
className="ouiButtonContent ouiButtonEmpty__content"
>
<span
className=""
/>
<span />
<span
className="ouiButtonEmpty__text"
>
Expand Down Expand Up @@ -677,9 +673,7 @@ exports[`OuiInMemoryTable behavior pagination 1`] = `
<span
className="ouiButtonContent ouiButtonEmpty__content"
>
<span
className=""
/>
<span />
<span
className="ouiButtonEmpty__text"
>
Expand Down
101 changes: 25 additions & 76 deletions src/components/button/__snapshots__/button.test.tsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,7 @@ exports[`OuiButton is rendered 1`] = `
<span
class="ouiButtonContent ouiButton__content"
>
<span
class=""
/>
<span />
<span
class="ouiButton__text"
>
Expand All @@ -30,9 +28,7 @@ exports[`OuiButton props color accent is rendered 1`] = `
<span
class="ouiButtonContent ouiButton__content"
>
<span
class=""
/>
<span />
<span
class="ouiButton__text"
/>
Expand All @@ -48,9 +44,7 @@ exports[`OuiButton props color danger is rendered 1`] = `
<span
class="ouiButtonContent ouiButton__content"
>
<span
class=""
/>
<span />
<span
class="ouiButton__text"
/>
Expand All @@ -66,9 +60,7 @@ exports[`OuiButton props color ghost is rendered 1`] = `
<span
class="ouiButtonContent ouiButton__content"
>
<span
class=""
/>
<span />
<span
class="ouiButton__text"
/>
Expand All @@ -84,9 +76,7 @@ exports[`OuiButton props color primary is rendered 1`] = `
<span
class="ouiButtonContent ouiButton__content"
>
<span
class=""
/>
<span />
<span
class="ouiButton__text"
/>
Expand All @@ -102,9 +92,7 @@ exports[`OuiButton props color secondary is rendered 1`] = `
<span
class="ouiButtonContent ouiButton__content"
>
<span
class=""
/>
<span />
<span
class="ouiButton__text"
/>
Expand All @@ -120,9 +108,7 @@ exports[`OuiButton props color success is rendered 1`] = `
<span
class="ouiButtonContent ouiButton__content"
>
<span
class=""
/>
<span />
<span
class="ouiButton__text"
/>
Expand All @@ -138,9 +124,7 @@ exports[`OuiButton props color text is rendered 1`] = `
<span
class="ouiButtonContent ouiButton__content"
>
<span
class=""
/>
<span />
<span
class="ouiButton__text"
/>
Expand All @@ -156,9 +140,7 @@ exports[`OuiButton props color warning is rendered 1`] = `
<span
class="ouiButtonContent ouiButton__content"
>
<span
class=""
/>
<span />
<span
class="ouiButton__text"
/>
Expand All @@ -176,9 +158,7 @@ exports[`OuiButton props contentProps is rendered 1`] = `
class="ouiButtonContent ouiButton__content testClass1 testClass2"
data-test-subj="test subject string"
>
<span
class=""
/>
<span />
<span
class="ouiButton__text"
>
Expand All @@ -196,9 +176,7 @@ exports[`OuiButton props fill is rendered 1`] = `
<span
class="ouiButtonContent ouiButton__content"
>
<span
class=""
/>
<span />
<span
class="ouiButton__text"
/>
Expand All @@ -214,9 +192,7 @@ exports[`OuiButton props fullWidth is rendered 1`] = `
<span
class="ouiButtonContent ouiButton__content"
>
<span
class=""
/>
<span />
<span
class="ouiButton__text"
/>
Expand All @@ -234,9 +210,7 @@ exports[`OuiButton props href secures the rel attribute when the target is _blan
<span
class="ouiButtonContent ouiButton__content"
>
<span
class=""
/>
<span />
<span
class="ouiButton__text"
/>
Expand All @@ -252,9 +226,7 @@ exports[`OuiButton props iconSide left is rendered 1`] = `
<span
class="ouiButtonContent ouiButton__content"
>
<span
class=""
>
<span>
<span
class="ouiButtonContent__icon"
color="inherit"
Expand All @@ -278,9 +250,7 @@ exports[`OuiButton props iconSide right is rendered 1`] = `
<span
class="ouiButtonContent ouiButtonContent--iconRight ouiButton__content"
>
<span
class=""
>
<span>
<span
class="ouiButtonContent__icon"
color="inherit"
Expand All @@ -304,9 +274,7 @@ exports[`OuiButton props iconType is rendered 1`] = `
<span
class="ouiButtonContent ouiButton__content"
>
<span
class=""
>
<span>
<span
class="ouiButtonContent__icon"
color="inherit"
Expand All @@ -329,9 +297,7 @@ exports[`OuiButton props isDisabled is rendered 1`] = `
<span
class="ouiButtonContent ouiButton__content"
>
<span
class=""
/>
<span />
<span
class="ouiButton__text"
/>
Expand All @@ -348,9 +314,7 @@ exports[`OuiButton props isDisabled renders a button even when href is defined 1
<span
class="ouiButtonContent ouiButton__content"
>
<span
class=""
/>
<span />
<span
class="ouiButton__text"
/>
Expand All @@ -367,9 +331,7 @@ exports[`OuiButton props isDisabled renders if passed as disabled 1`] = `
<span
class="ouiButtonContent ouiButton__content"
>
<span
class=""
/>
<span />
<span
class="ouiButton__text"
/>
Expand All @@ -386,9 +348,7 @@ exports[`OuiButton props isLoading is rendered 1`] = `
<span
class="ouiButtonContent ouiButton__content"
>
<span
class=""
>
<span>
<span
class="ouiLoadingSpinner ouiLoadingSpinner--medium ouiButtonContent__spinner"
/>
Expand All @@ -409,9 +369,7 @@ exports[`OuiButton props isSelected is rendered as false 1`] = `
<span
class="ouiButtonContent ouiButton__content"
>
<span
class=""
/>
<span />
<span
class="ouiButton__text"
/>
Expand All @@ -428,9 +386,7 @@ exports[`OuiButton props isSelected is rendered as true 1`] = `
<span
class="ouiButtonContent ouiButton__content"
>
<span
class=""
/>
<span />
<span
class="ouiButton__text"
/>
Expand All @@ -447,9 +403,7 @@ exports[`OuiButton props minWidth is rendered 1`] = `
<span
class="ouiButtonContent ouiButton__content"
>
<span
class=""
/>
<span />
<span
class="ouiButton__text"
/>
Expand All @@ -465,9 +419,7 @@ exports[`OuiButton props size m is rendered 1`] = `
<span
class="ouiButtonContent ouiButton__content"
>
<span
class=""
/>
<span />
<span
class="ouiButton__text"
/>
Expand All @@ -483,9 +435,7 @@ exports[`OuiButton props size s is rendered 1`] = `
<span
class="ouiButtonContent ouiButton__content"
>
<span
class=""
/>
<span />
<span
class="ouiButton__text"
/>
Expand All @@ -503,7 +453,6 @@ exports[`OuiButton props textProps is rendered 1`] = `
>
<span
aria-label="aria-label"
class=""
data-test-subj="test subject string"
/>
<span
Expand Down
Loading

0 comments on commit a9ecbf9

Please sign in to comment.