pull/1310/head
Cory LaViska 2023-04-13 12:47:18 -04:00
rodzic 65734dc993
commit caf9a09efa
3 zmienionych plików z 3 dodań i 3 usunięć

Wyświetl plik

@ -369,7 +369,7 @@ This will render the icons instantly whereas the default library will fetch them
What to test for a given component:
- Start with a simple test that checks that the default version of the component still renders.
- Add at least one accessibility test (The accessability check only covers the parts of the DOM which are currently visible and rendered. Depending on the component, more than one accessability test is required to cover all scenarios.):
- Add at least one accessibility test (The accessibility check only covers the parts of the DOM which are currently visible and rendered. Depending on the component, more than one accessibility test is required to cover all scenarios.):
```ts
const myComponent = await fixture<SlAlert>(html`<sl-my-component>SomeContent</sl-my-component>`);

Wyświetl plik

@ -6,7 +6,7 @@ import type SlHideEvent from '../../events/sl-hide';
import type SlShowEvent from '../../events/sl-show';
describe('<sl-details>', () => {
describe('accessability', () => {
describe('accessibility', () => {
it('should be accessible when closed', async () => {
const details = await fixture<SlDetails>(html`<sl-details summary="Test"> Test text </sl-details>`);

Wyświetl plik

@ -8,7 +8,7 @@ import type SlOption from '../option/option';
import type SlSelect from './select';
describe('<sl-select>', () => {
describe('accessability', () => {
describe('accessibility', () => {
it('should pass accessibility tests when closed', async () => {
const select = await fixture<SlSelect>(html`
<sl-select label="Select one">