fix(curriculum): allow image placement in any order (#59585)

Co-authored-by: Ilenia <26656284+ilenia-magoni@users.noreply.github.com>
This commit is contained in:
Supravisor
2025-04-15 17:51:34 +12:00
committed by GitHub
parent 0c0817c089
commit 6a2b95df8d

View File

@@ -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.