Skip to content

Commit

Permalink
fix: tests
Browse files Browse the repository at this point in the history
  • Loading branch information
dauriamarco committed Oct 17, 2023
1 parent 8fe942f commit f8298f8
Showing 1 changed file with 39 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,12 @@ describe('sbb-expansion-panel-header', () => {
<slot></slot>
</span>
<span class="sbb-expansion-panel-header__toggle">
<sbb-icon class="sbb-expansion-panel-header__toggle-icon" name="chevron-small-down-medium"></sbb-icon>
<sbb-icon
aria-hidden="true"
data-namespace="default"
role="img"
class="sbb-expansion-panel-header__toggle-icon"
name="chevron-small-down-medium"></sbb-icon>
</span>
</span>
`,
Expand All @@ -36,7 +41,15 @@ describe('sbb-expansion-panel-header', () => {

expect(root).dom.to.be.equal(
`
<sbb-expansion-panel-header slot='header' icon-name="pie-medium" dir="ltr" role="button" slot="header" tabindex="0" data-icon>
<sbb-expansion-panel-header
slot='header'
icon-name="pie-medium"
dir="ltr"
role="button"
slot="header"
tabindex="0"
data-icon
>
Header
</sbb-expansion-panel-header>
`,
Expand All @@ -47,13 +60,23 @@ describe('sbb-expansion-panel-header', () => {
<span class="sbb-expansion-panel-header__title">
<span class="sbb-expansion-panel-header__icon">
<slot name="icon">
<sbb-icon name="pie-medium"></sbb-icon>
<sbb-icon
aria-hidden="true"
data-namespace="default"
name="pie-medium"
role="img"
></sbb-icon>
</slot>
</span>
<slot></slot>
</span>
<span class="sbb-expansion-panel-header__toggle">
<sbb-icon class="sbb-expansion-panel-header__toggle-icon" name="chevron-small-down-medium"></sbb-icon>
<sbb-icon
aria-hidden="true"
data-namespace="default"
role="img"
class="sbb-expansion-panel-header__toggle-icon"
name="chevron-small-down-medium"></sbb-icon>
</span>
</span>
`,
Expand All @@ -71,7 +94,12 @@ describe('sbb-expansion-panel-header', () => {
expect(root).dom.to.be.equal(
`
<sbb-expansion-panel-header slot='header' dir="ltr" role="button" slot="header" tabindex="0" data-icon>
<sbb-icon slot='icon' name='pie-medium'></sbb-icon>
<sbb-icon
aria-hidden="true"
data-namespace="default"
role="img"
slot='icon'
name='pie-medium'></sbb-icon>
Header
</sbb-expansion-panel-header>
`,
Expand All @@ -87,7 +115,12 @@ describe('sbb-expansion-panel-header', () => {
<slot></slot>
</span>
<span class="sbb-expansion-panel-header__toggle">
<sbb-icon class="sbb-expansion-panel-header__toggle-icon" name="chevron-small-down-medium"></sbb-icon>
<sbb-icon
aria-hidden="true"
data-namespace="default"
role="img"
class="sbb-expansion-panel-header__toggle-icon"
name="chevron-small-down-medium"></sbb-icon>
</span>
</span>
`,
Expand Down

0 comments on commit f8298f8

Please sign in to comment.