From 6ad2f63ff60f34c19618a17d788a69a5aec89bba Mon Sep 17 00:00:00 2001 From: Dario-DC <105294544+Dario-DC@users.noreply.github.com> Date: Thu, 9 Jan 2025 07:12:55 +0100 Subject: [PATCH] fix(curriculum): tests in event hub lab (#57998) --- .../lab-event-hub/66ebd4ae2812430bb883c787.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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 b981f5b9311..7edee2ec810 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 @@ -159,10 +159,10 @@ const h2Element = document.querySelector('#upcoming-events h2'); assert.strictEqual(h2Element?.innerText, "Upcoming Events"); ``` -Inside the `#upcoming-events` section, you should have two `article` elements. +Inside the `#upcoming-events` section, you should have two `article` elements below the `h2` element. ```js -const articleElements = document.querySelectorAll('#upcoming-events article'); +const articleElements = document.querySelectorAll('#upcoming-events h2 ~ article'); assert.strictEqual(articleElements.length, 2); ``` @@ -187,10 +187,10 @@ const h2Element = document.querySelector('#past-events h2'); assert.strictEqual(h2Element?.innerText, "Past Events"); ``` -Inside the `#past-events` section, you should have two `article` elements. +Inside the `#past-events` section, you should have two `article` elements below the `h2` element. ```js -const articleElements = document.querySelectorAll('#past-events article'); +const articleElements = document.querySelectorAll('#past-events h2 ~ article'); assert.strictEqual(articleElements.length, 2); ```