mirror of
https://github.com/shoelace-style/webawesome.git
synced 2026-01-12 04:09:12 +00:00
fix test
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import { expect, fixture, html } from '@open-wc/testing';
|
||||
import { aTimeout } from '@open-wc/testing-helpers';
|
||||
|
||||
import '../../../dist/shoelace.js';
|
||||
import type SlAvatar from './avatar';
|
||||
@@ -56,6 +57,9 @@ describe('<sl-avatar>', () => {
|
||||
describe('when an error occurs when attempting to load the image', async () => {
|
||||
before(async () => {
|
||||
el = await fixture<SlAvatar>(html`<sl-avatar image="404.gif" label="${label}"></sl-avatar>`);
|
||||
|
||||
// Wait for the 404 to resolve and trigger an update
|
||||
await el.updateComplete;
|
||||
});
|
||||
|
||||
it('does not render the "image" part', async () => {
|
||||
|
||||
Reference in New Issue
Block a user