import '../../../dist/shoelace.js'; import { expect, fixture, html, waitUntil } from '@open-wc/testing'; import { runFormControlBaseTests } from '../../internal/test/form-control-base-tests.js'; import sinon from 'sinon'; import type SlButton from './button.js'; const variants = ['default', 'primary', 'success', 'neutral', 'warning', 'danger']; describe('', () => { describe('accessibility tests', () => { variants.forEach(variant => { it(`should be accessible when variant is "${variant}"`, async () => { const el = await fixture(html` Button Label `); await expect(el).to.be.accessible(); }); }); }); describe('when provided no parameters', () => { it('passes accessibility test', async () => { const el = await fixture(html` Button Label `); await expect(el).to.be.accessible(); }); it('default values are set correctly', async () => { const el = await fixture(html` Button Label `); expect(el.title).to.equal(''); expect(el.variant).to.equal('default'); expect(el.size).to.equal('medium'); expect(el.disabled).to.equal(false); expect(el.caret).to.equal(false); expect(el.loading).to.equal(false); expect(el.outline).to.equal(false); expect(el.pill).to.equal(false); expect(el.circle).to.equal(false); }); it('should render as a