import { expect, fixture, html } from '@open-wc/testing';
import { {{ className extensionType name }} } from './{{ extensionFilename extensionType name }}.element';
import { defaultA11yConfig } from '@umbraco-cms/test-utils';

describe('{{className extensionType name}}', () => {
  let element: {{className extensionType name}};

  beforeEach(async () => {
    element = await fixture(
      html` <{{ extensionTagName extensionType name }}></{{ extensionTagName extensionType name }}> `
    );
  });

  it('is defined with its own instance', () => {
    expect(element).to.be.instanceOf({{ className extensionType name }});
  });

  it('passes the a11y audit', async () => {
    await expect(element).shadowDom.to.be.accessible(defaultA11yConfig);
  });
});
