diff --git a/challenges/html5-and-css.json b/challenges/html5-and-css.json index e55619b87b..0463430e38 100644 --- a/challenges/html5-and-css.json +++ b/challenges/html5-and-css.json @@ -1998,8 +1998,8 @@ ], "tests": [ "assert($('input[type=\"radio\"]').length > 1, 'Your page should have two radio button elements.')", - "assert($('input[type=\"radio\"]:nth-child(1)').attr('name') === 'indoor-outdoor', 'Give your radio buttons the name attribute of indoor-outdoor.')", - "assert($(\"label\").length > 1, 'Each of your two radio button elements should be nested in a label element.')", + "assert($('label > input[type=\"radio\"]').filter(\"[name='indoor-outdoor']\").length > 1, 'Give your radio buttons the name attribute of indoor-outdoor.')", + "assert($('label > input[type=\"radio\"]:only-child').length > 1, 'Each of your two radio button elements should be nested in its own label element.')", "assert(editor.match(/<\\/label>/g) && editor.match(/