kopia lustrzana https://github.com/shoelace-style/shoelace
fix test
rodzic
d803ffcf95
commit
5d57a51618
|
@ -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 () => {
|
||||
|
|
Ładowanie…
Reference in New Issue