Skip to content

Commit

Permalink
fix: tests
Browse files Browse the repository at this point in the history
  • Loading branch information
dauriamarco committed Feb 8, 2024
1 parent 4937d6b commit bbb12e9
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 20 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,7 @@ export const snapshots = {};

snapshots["sbb-notification renders"] =
`<div class="sbb-notification__wrapper">
<div
class="sbb-notification"
role="status"
>
<div class="sbb-notification">
<sbb-icon
aria-hidden="true"
class="sbb-notification__icon"
Expand Down Expand Up @@ -56,10 +53,7 @@ snapshots["sbb-notification renders"] =

snapshots["sbb-notification renders with a title"] =
`<div class="sbb-notification__wrapper">
<div
class="sbb-notification"
role="status"
>
<div class="sbb-notification">
<sbb-icon
aria-hidden="true"
class="sbb-notification__icon"
Expand Down Expand Up @@ -110,10 +104,7 @@ snapshots["sbb-notification renders with a title"] =

snapshots["sbb-notification renders with a slotted title"] =
`<div class="sbb-notification__wrapper">
<div
class="sbb-notification"
role="status"
>
<div class="sbb-notification">
<sbb-icon
aria-hidden="true"
class="sbb-notification__icon"
Expand Down Expand Up @@ -163,10 +154,7 @@ snapshots["sbb-notification renders with a slotted title"] =

snapshots["sbb-notification renders without the close button"] =
`<div class="sbb-notification__wrapper">
<div
class="sbb-notification"
role="status"
>
<div class="sbb-notification">
<sbb-icon
aria-hidden="true"
class="sbb-notification__icon"
Expand Down
8 changes: 4 additions & 4 deletions src/components/notification/notification.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ describe('sbb-notification', () => {

expect(root).dom.to.be.equal(
`
<sbb-notification disable-animation data-state="opened" type="info" data-slot-names="unnamed" style="--sbb-notification-height: auto;">
<sbb-notification disable-animation data-state="opened" role="status" type="info" data-slot-names="unnamed" style="--sbb-notification-height: auto;">
The quick brown fox jumps over the lazy dog.
</sbb-notification>`,
);
Expand All @@ -39,7 +39,7 @@ describe('sbb-notification', () => {

expect(root).dom.to.be.equal(
`
<sbb-notification disable-animation data-state="opened" title-content="Title" type="info" data-slot-names="unnamed" style="--sbb-notification-height: auto;">
<sbb-notification disable-animation data-state="opened" title-content="Title" role="status" type="info" data-slot-names="unnamed" style="--sbb-notification-height: auto;">
The quick brown fox jumps over the lazy dog.
</sbb-notification>`,
);
Expand All @@ -58,7 +58,7 @@ describe('sbb-notification', () => {

expect(root).dom.to.be.equal(
`
<sbb-notification disable-animation data-state="opened" type="info" data-slot-names="title unnamed" style="--sbb-notification-height: auto;">
<sbb-notification disable-animation data-state="opened" role="status" type="info" data-slot-names="title unnamed" style="--sbb-notification-height: auto;">
<span slot="title">
Slotted title
</span>
Expand All @@ -79,7 +79,7 @@ describe('sbb-notification', () => {

expect(root).dom.to.be.equal(
`
<sbb-notification disable-animation readonly data-state="opened" title-content="Title" type="info" data-slot-names="unnamed" style="--sbb-notification-height: auto;">
<sbb-notification disable-animation readonly data-state="opened" title-content="Title" role="status" type="info" data-slot-names="unnamed" style="--sbb-notification-height: auto;">
The quick brown fox jumps over the lazy dog.
</sbb-notification>`,
);
Expand Down

0 comments on commit bbb12e9

Please sign in to comment.