pull/1050/head
Cory LaViska 2022-11-30 15:43:36 -05:00
rodzic 35aa56d334
commit e10651565f
5 zmienionych plików z 5 dodań i 5 usunięć

Wyświetl plik

@ -89,7 +89,7 @@ describe('<sl-button>', () => {
});
});
it('should have title if title attribute isset', async () => {
it('should have title if title attribute is set', async () => {
const el = await fixture<SlButton>(html` <sl-button title="Test"></sl-button> `);
const button = el.shadowRoot!.querySelector<HTMLButtonElement>('[part~="base"]')!;

Wyświetl plik

@ -48,7 +48,7 @@ describe('<sl-input>', () => {
expect(isNaN(el.valueAsNumber)).to.be.true;
});
it('should have title if title attribute isset', async () => {
it('should have title if title attribute is set', async () => {
const el = await fixture<SlInput>(html` <sl-input title="Test"></sl-input> `);
const input = el.shadowRoot!.querySelector<HTMLInputElement>('[part~="input"]')!;

Wyświetl plik

@ -26,7 +26,7 @@ describe('<sl-range>', () => {
expect(el.defaultValue).to.equal(0);
});
it('should have title if title attribute isset', async () => {
it('should have title if title attribute is set', async () => {
const el = await fixture<SlRange>(html` <sl-range title="Test"></sl-range> `);
const input = el.shadowRoot!.querySelector('input')!;

Wyświetl plik

@ -20,7 +20,7 @@ describe('<sl-switch>', () => {
expect(el.defaultChecked).to.be.false;
});
it('should have title if title attribute isset', async () => {
it('should have title if title attribute is set', async () => {
const el = await fixture<SlSwitch>(html` <sl-switch title="Test"></sl-switch> `);
const input = el.shadowRoot!.querySelector('input')!;

Wyświetl plik

@ -37,7 +37,7 @@ describe('<sl-textarea>', () => {
expect(el.inputmode).to.be.undefined;
});
it('should have title if title attribute isset', async () => {
it('should have title if title attribute is set', async () => {
const el = await fixture<SlTextarea>(html` <sl-textarea title="Test"></sl-textarea> `);
const textarea = el.shadowRoot!.querySelector('textarea')!;