HTML: Radio button
Instructions
Loading...
Your exercise will be checked with these tests:
const { test } = require('tests');
test(({ query, expect }) => {
const form = query(document, 'form');
const labels = form.querySelectorAll('label');
expect(form).to.have.attr('action', '/people');
expect(labels).to.have.length(2);
labels.forEach((label) => {
const input = label.querySelector('input');
expect(input).to.have.attr('type', 'radio');
expect(input).to.have.attr('name', 'delivery');
expect(input).to.have.attr('value');
});
});
Teacher's solution will be available in:
20:00
