import { document, setTimeout } from 'global';
import { storiesOf } from '@storybook/html';
import { withA11Y } from '@storybook/addon-a11y';
const text = 'Testing the a11y addon';
storiesOf('Addons|a11y', module)
.addDecorator(withA11Y)
.addParameters({ options: { selectedAddonPanel: 'storybook/a11y/panel' } })
.add('Default', () => ``)
.add('Label', () => ``)
.add('Disabled', () => ``)
.add(
'Invalid contrast',
() => ``
)
.add('Delayed render', () => {
const div = document.createElement('div');
setTimeout(() => {
div.innerHTML = ``;
}, 1000);
return div;
});