diff --git a/curriculum/challenges/english/25-front-end-development/lab-event-hub/66ebd4ae2812430bb883c787.md b/curriculum/challenges/english/25-front-end-development/lab-event-hub/66ebd4ae2812430bb883c787.md index 767bb3aa833..700999e3530 100644 --- a/curriculum/challenges/english/25-front-end-development/lab-event-hub/66ebd4ae2812430bb883c787.md +++ b/curriculum/challenges/english/25-front-end-development/lab-event-hub/66ebd4ae2812430bb883c787.md @@ -204,8 +204,11 @@ assert.strictEqual(h3Elements.length, 2); Both of the `article` elements inside the `#past-events` section should have a paragraph element for the event description. ```js -const pElement = document.querySelectorAll('#past-events article h3+p').length; -assert.strictEqual(pElement, 2); +const articles = document.querySelectorAll('#past-events article'); +assert.isNotEmpty(articles); +articles.forEach(article => { + assert.isAtLeast(article.querySelectorAll('h3 ~ p').length, 1); +}); ``` Both of the `article` elements inside the `#past-events` section should have an image element.