fix(curriculum): tests in event hub lab (#57998)

This commit is contained in:
Dario-DC 2025-01-09 07:12:55 +01:00 committed by GitHub
parent 762c53b69a
commit 6ad2f63ff6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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);
```