Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: update failing tests #1592

Merged
merged 2 commits into from
Oct 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 6 additions & 5 deletions packages/components/src/components/audio/audio.test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { expect, fixture, html } from '@open-wc/testing';
import base64Audio from './base64Audio';
import sinon from 'sinon';
import type SdAudio from './audio';

Expand All @@ -12,7 +13,7 @@ describe('<sd-audio>', () => {
it('should emit sd-playback-start event when play buttons is clicked', async () => {
const el = await fixture<SdAudio>(html`
<sd-audio>
<audio slot="default" src="test-audio.mp3"></audio>
<audio src="${base64Audio}"></audio>
</sd-audio>
`);

Expand All @@ -30,7 +31,7 @@ describe('<sd-audio>', () => {
it('should emit sd-playback-mute event when mute button is clicked', async () => {
const el = await fixture<SdAudio>(html`
<sd-audio>
<audio slot="default" src="test-audio.mp3"></audio>
<audio src="${base64Audio}"></audio>
</sd-audio>
`);

Expand All @@ -48,7 +49,7 @@ describe('<sd-audio>', () => {
it('should hide the timestamps when the attribute is set', async () => {
const el = await fixture<SdAudio>(html`
<sd-audio hide-timestamps>
<audio slot="default" src="test-audio.mp3"></audio>
<audio src="${base64Audio}"></audio>
</sd-audio>
`);

Expand All @@ -60,7 +61,7 @@ describe('<sd-audio>', () => {
it('should render the canvas when the animated attribute is set', async () => {
const el = await fixture<SdAudio>(html`
<sd-audio animated>
<audio slot="default" src="test-audio.mp3"></audio>
<audio src="${base64Audio}"></audio>
</sd-audio>
`);

Expand All @@ -72,7 +73,7 @@ describe('<sd-audio>', () => {
it('should emit sd-transcript-click event when transcript button is clicked', async () => {
const el = await fixture<SdAudio>(html`
<sd-audio>
<audio src="test-audio.mp3"></audio>
<audio src="${base64Audio}"></audio>
<div slot="transcript">Transcript</div>
</sd-audio>
`);
Expand Down
Loading
Loading