UNPKG

@spectrum-web-components/button

Version:

An `<sp-button>` represents an action a user can take. sp-buttons can be clicked or tapped to perform an action or to navigate to another page. sp-buttons in Spectrum have several variations for different uses and multiple levels of loudness for various a

28 lines (27 loc) 825 B
"use strict"; import "@spectrum-web-components/button/sp-clear-button.js"; import { expect, fixture, html } from "@open-wc/testing"; import { testForLitDevWarnings } from "../../../test/testing-helpers"; describe("Clear Button", () => { testForLitDevWarnings( async () => await fixture( html` <sp-clear-button size="m" label="Clear"></sp-clear-button> ` ) ); ["s", "m", "l", "xl"].map((size) => { it(`loads - ${size}`, async () => { const el = await fixture( html` <sp-clear-button size=${size} label="Clear" ></sp-clear-button> ` ); await expect(el).to.be.accessible(); }); }); }); //# sourceMappingURL=clear-button.test.js.map