Skip to content

Commit

Permalink
📸 Update outdated snapshots
Browse files Browse the repository at this point in the history
  • Loading branch information
aym3nb committed Feb 27, 2024
1 parent 72f27ab commit 6ab680a
Show file tree
Hide file tree
Showing 9 changed files with 23 additions and 46 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,5 @@

exports[`HdArrowButton renders component 1`] = `
<button autocomplete="off" type="button" class="arrowButton arrowButton--right">
<!---->
</button>
<!----></button>
`;
21 changes: 7 additions & 14 deletions tests/unit/components/buttons/__snapshots__/HdButton.spec.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -9,44 +9,37 @@ exports[`HdButton can be used as an icon button 1`] = `

exports[`HdButton should render component with \`btn\` class 1`] = `
<button class="btn btn--primary">
<!----> <span class="btn__content"><span>Button text</span></span>
</button>
<!----> <span class="btn__content"><span>Button text</span></span></button>
`;

exports[`HdButton should render component with btn--dark-background class if prop isInDarkBackground is true 1`] = `
<button class="btn btn--primary btn--dark-background">
<!----> <span class="btn__content"><span>Button text</span></span>
</button>
<!----> <span class="btn__content"><span>Button text</span></span></button>
`;

exports[`HdButton should render component with btn--flat class 1`] = `
<button class="btn btn--flat">
<!----> <span class="btn__content"><span>Button text</span></span>
</button>
<!----> <span class="btn__content"><span>Button text</span></span></button>
`;

exports[`HdButton should render component with btn--ghost class 1`] = `
<button class="btn btn--ghost">
<!----> <span class="btn__content"><span>Button text</span></span>
</button>
<!----> <span class="btn__content"><span>Button text</span></span></button>
`;

exports[`HdButton should render component with btn--primary class 1`] = `
<button class="btn btn--primary">
<!----> <span class="btn__content"><span>Button text</span></span>
</button>
<!----> <span class="btn__content"><span>Button text</span></span></button>
`;

exports[`HdButton should render component with btn--secondary class 1`] = `
<button class="btn btn--secondary">
<!----> <span class="btn__content"><span>Button text</span></span>
</button>
<!----> <span class="btn__content"><span>Button text</span></span></button>
`;

exports[`HdButton should render component with btn--tertiary class 1`] = `
<button class="btn btn--tertiary">
<!----> <span class="btn__content"><span>Button text</span></span>
</button>
<!----> <span class="btn__content"><span>Button text</span></span></button>
`;

exports[`HdButton should render the icon passed as prop 1`] = `
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,7 @@ exports[`HdDynamicForm renders slots 1`] = `
<div>The before button slot</div> <button class="dynamicForm__submit btn btn--primary">
<!----> <span class="btn__content">
submit
</span>
</button>
</span></button>
<div>The after slot</div>
</form>
`;
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@ exports[`HdInputPassword is rendered as expected 1`] = `
test label
</label>
<div class="field__input-right"><button type="button" class="password-input__visibility-toggle">
<!---->
</button></div>
<!----></button></div>
<div class="field__border"></div>
</div>
<p class="field__helper">‍</p>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@

exports[`HdInputPhone is rendered as expected 1`] = `
<div class="phone-input"><button aria-haspopup="listbox" aria-label="Wählen Sie einen Ländercode:" aria-activedescendant="+49, Deutschland" class="phone-input__selector"><span class="phone-input__selector__flag flag-icon flag-icon-de"></span>
<!---->
</button>
<!----></button>
<ul tabindex="-1" role="listbox" aria-label="Telefonnummer" class="phone-input__dropdown" style="display: none;">
<li id="AD" role="option" class="phone-input__dropdown__option"><button class="option"><span class="option__flag flag-icon flag-icon-ad"></span>
<p><span class="option__name">Andorra</span> <span class="option__dial-code">+376</span></p>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@ exports[`HdPasswordConfirm is rendered as expected 1`] = `
Ihr Passwort
</label>
<div class="field__input-right"><button type="button" class="password-input__visibility-toggle">
<!---->
</button></div>
<!----></button></div>
<div class="field__border"></div>
</div>
<p class="field__helper">‍</p>
Expand Down
18 changes: 6 additions & 12 deletions tests/unit/components/form/__snapshots__/HdRange.spec.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,7 @@ exports[`HdRange Labels renders 1`] = `
</button><button type="button" class="range__step">
<p class="range__step-label">label4</p>
</button><button type="button" class="range__step">
<!---->
</button></div>
<!----></button></div>
<div class="range__thumb" style="transform: translateX(0px);">
<!---->
<div class="range__thumb__inner">
Expand All @@ -31,16 +30,11 @@ exports[`HdRange renders as expected 1`] = `
<div class="range__progress" style="transform: scaleX(0.5);"></div>
</div>
<div class="range__steps"><button type="button" class="range__step">
<!---->
</button><button type="button" class="range__step">
<!---->
</button><button type="button" class="range__step">
<!---->
</button><button type="button" class="range__step">
<!---->
</button><button type="button" class="range__step">
<!---->
</button></div>
<!----></button><button type="button" class="range__step">
<!----></button><button type="button" class="range__step">
<!----></button><button type="button" class="range__step">
<!----></button><button type="button" class="range__step">
<!----></button></div>
<div class="range__thumb" style="transform: translateX(0px);">
<!---->
<div class="range__thumb__inner">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,13 @@ exports[`HdTagsSelector The component is rendered 1`] = `
<section class="tags-selector__selected-tags">
<div class="tags-selector__selected-tags__tag">
<div class="tags-selector__selected-tags__tag__label">Jon "Snow"</div> <button class="tags-selector__selected-tags__tag__remove">
<!---->
</button>
<!----></button>
</div>
<div class="tags-selector__selected-tags__tag">
<div class="tags-selector__selected-tags__tag__label">Daenerys</div> <button class="tags-selector__selected-tags__tag__remove">
<!---->
</button>
<!----></button>
</div> <button class="tags-selector__selected-tags__panel-toggle">
<!---->
</button>
<!----></button>
</section>
<section class="tags-selector__panel">
<div class="tags-selector__panel__tag tags-selector__panel__tag--isSelected">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,8 @@ exports[`HdGallery renders the component 1`] = `
</div>
</div>
<div class="gallery__controls"><button type="button" class="gallery__controls-prev isDisabled">
<!---->
</button> <button type="button" class="gallery__controls-next">
<!---->
</button></div>
<!----></button> <button type="button" class="gallery__controls-next">
<!----></button></div>
<p class="gallery__info">1/10</p>
</div>
</figure>
Expand Down

0 comments on commit 6ab680a

Please sign in to comment.