diff --git a/curriculum/challenges/english/blocks/lab-feature-selection/68ce56d54d3cad1149a1c4cf.md b/curriculum/challenges/english/blocks/lab-feature-selection/68ce56d54d3cad1149a1c4cf.md index 27e28b58e2a..351ee4a4a5b 100644 --- a/curriculum/challenges/english/blocks/lab-feature-selection/68ce56d54d3cad1149a1c4cf.md +++ b/curriculum/challenges/english/blocks/lab-feature-selection/68ce56d54d3cad1149a1c4cf.md @@ -45,13 +45,22 @@ You should have a `div` element with the class `feature-card-container`. assert.exists(document.querySelector('div.feature-card-container')); ``` -You should have at least two `label` elements with the class `feature-card` inside `.feature-card-container`. +You should have at least two `label` elements inside `.feature-card-container`. ```js const labels = document.querySelectorAll('.feature-card-container label'); assert.isAtLeast(labels.length, 2); ``` +Each `label` element inside `.feature-card-container` should have the class `feature-card`. + +```js +const labels = document.querySelectorAll('.feature-card-container label'); +assert.isNotEmpty(labels); + +labels.forEach(label => assert.isTrue(label.classList.contains('feature-card'))); +``` + Inside each `label` element you should have label text. ```js