From 88f012878dbde584cb4c7bb9d08f2f0e505e540d Mon Sep 17 00:00:00 2001 From: Ilenia Date: Wed, 27 Jul 2022 23:21:28 +0200 Subject: [PATCH] fix: step 30 registration form add test against wrong code (#47017) * fix: add test against wrong code * feat: add mention of option elements --- .../60fac56271087806def55b33.md | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/curriculum/challenges/english/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/60fac56271087806def55b33.md b/curriculum/challenges/english/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/60fac56271087806def55b33.md index 42c523f1877..e696e812a07 100644 --- a/curriculum/challenges/english/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/60fac56271087806def55b33.md +++ b/curriculum/challenges/english/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/60fac56271087806def55b33.md @@ -7,7 +7,7 @@ dashedName: step-30 # --description-- -Nest the `select` element within a `label` element with the text `How did you hear about us?`. The text should come before the `select` element. +Nest the select element (with its option elements) within a `label` element with the text `How did you hear about us?`. The text should come before the `select` element. # --hints-- @@ -29,6 +29,12 @@ You should place the text before the `select` element. assert.match(document.querySelector('fieldset:nth-child(3) > label:nth-child(3)')?.innerHTML?.trim().replace(/[\t\n]+/g, ''), /^How did you hear about us\?/); ``` +You should have 5 `option` elements inside the `select` element. + +```js +assert.equal(document.querySelectorAll('fieldset > label > select > option')?.length, 5); +``` + # --seed-- ## --seed-contents--