Co-authored-by: Mikhail Bashkirov <mikhail.bashkirov@ing.com> Co-authored-by: Thijs Louisse <thijs.louisse@ing.com> Co-authored-by: Joren Broekema <joren.broekema@ing.com> Co-authored-by: Gerjan van Geest <gerjan.van.geest@ing.com> Co-authored-by: Erik Kroes <erik.kroes@ing.com> Co-authored-by: Lars den Bakker <lars.den.bakker@ing.com>
21 lines
654 B
JavaScript
21 lines
654 B
JavaScript
import { expect, fixture, nextFrame } from '@open-wc/testing';
|
|
|
|
import '../lion-radio.js';
|
|
|
|
describe('<lion-radio>', () => {
|
|
it('should have type = radio', async () => {
|
|
const el = await fixture(`
|
|
<lion-radio-group>
|
|
<label slot="label">My group</label>
|
|
<lion-radio name="gender[]" value="male">
|
|
<label slot="label">male</label>
|
|
</lion-radio>
|
|
<lion-radio name="gender[]" value="female">
|
|
<label slot="label">female</label>
|
|
</lion-radio>
|
|
</lion-radio-group>
|
|
`);
|
|
await nextFrame();
|
|
expect(el.children[1].inputElement.getAttribute('type')).to.equal('radio');
|
|
});
|
|
});
|