Skip to content

Commit

Permalink
fix: fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jeripeierSBB committed Mar 27, 2024
1 parent 44c7ac4 commit 05e5166
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 20 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,22 +46,6 @@ snapshots["sbb-expansion-panel renders ShadowDom"] =
`;
/* end snapshot sbb-expansion-panel renders ShadowDom */

snapshots["sbb-expansion-panel renders A11y tree Chrome"] =
`<p>
{
"role": "WebArea",
"name": "",
"children": [
{
"role": "button",
"name": "Header"
}
]
}
</p>
`;
/* end snapshot sbb-expansion-panel renders A11y tree Chrome */

snapshots["sbb-expansion-panel renders with level set Dom"] =
`<sbb-expansion-panel title-level="4">
<sbb-expansion-panel-header
Expand Down Expand Up @@ -107,7 +91,7 @@ snapshots["sbb-expansion-panel renders with level set ShadowDom"] =
`;
/* end snapshot sbb-expansion-panel renders with level set ShadowDom */

snapshots["sbb-expansion-panel renders A11y tree Firefox"] =
snapshots["sbb-expansion-panel renders with level set A11y tree Firefox"] =
`<p>
{
"role": "document",
Expand All @@ -121,5 +105,21 @@ snapshots["sbb-expansion-panel renders A11y tree Firefox"] =
}
</p>
`;
/* end snapshot sbb-expansion-panel renders A11y tree Firefox */
/* end snapshot sbb-expansion-panel renders with level set A11y tree Firefox */

snapshots["sbb-expansion-panel renders with level set A11y tree Chrome"] =
`<p>
{
"role": "WebArea",
"name": "",
"children": [
{
"role": "button",
"name": "Header"
}
]
}
</p>
`;
/* end snapshot sbb-expansion-panel renders with level set A11y tree Chrome */

Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,6 @@ describe(`sbb-expansion-panel`, () => {
it('ShadowDom', async () => {
await expect(element).shadowDom.to.be.equalSnapshot();
});

testA11yTreeSnapshot();
});

describe('renders with level set', () => {
Expand All @@ -52,5 +50,7 @@ describe(`sbb-expansion-panel`, () => {
it('ShadowDom', async () => {
await expect(element).shadowDom.to.be.equalSnapshot();
});

testA11yTreeSnapshot();
});
});

0 comments on commit 05e5166

Please sign in to comment.