fix(curriculum): make tests work again (#63504)

This commit is contained in:
Ilenia
2025-11-04 17:44:21 +01:00
committed by GitHub
parent d819fefc61
commit 1ffd4568c4
8 changed files with 8 additions and 8 deletions
@@ -20,7 +20,7 @@ window.fetch = () => Promise.resolve({json: () => Promise.resolve([{ author: 'Wh
You should create an `img` element.
```js
__helpers.retryingTest(() => document.querySelector('img'), "'img' element not found");
await __helpers.retryingTest(() => document.querySelector('img'), "'img' element not found");
```
Your `img` element should have the class `"user-img"`.
@@ -22,7 +22,7 @@ window.fetch = () => Promise.resolve({json: () => Promise.resolve([{ author: 'Wh
You should create a `p` element.
```js
__helpers.retryingTest(() => document.querySelector('p'), "'p' element not found");
await __helpers.retryingTest(() => document.querySelector('p'), "'p' element not found");
```
Your `p` element should have the class `"bio"`
@@ -22,7 +22,7 @@ window.fetch = () => Promise.resolve({json: () => Promise.resolve([{ author: 'Wh
You should create an anchor element.
```js
__helpers.retryingTest(() => document.querySelector('a'), "'a' element not found");
await __helpers.retryingTest(() => document.querySelector('a'), "'a' element not found");
```
Your anchor element should have the class `"author-link"`.
@@ -22,7 +22,7 @@ window.fetch = () => Promise.resolve({json: () => Promise.resolve([{ author: 'Wh
You should create a `div` element before your `p` element.
```js
__helpers.retryingTest(() => document.querySelector('p')?.previousElementSibling?.tagName === 'DIV', "'div' element not found");
await __helpers.retryingTest(() => document.querySelector('p')?.previousElementSibling?.tagName === 'DIV', "'div' element not found");
```
Your `div` element should have the `class` set to `"purple-divider"`.
@@ -22,7 +22,7 @@ window.fetch = () => Promise.resolve({json: () => Promise.resolve([{ author: 'Wh
You should create an `img` element.
```js
__helpers.retryingTest(() => document.querySelector('img'), "'img' element not found");
await __helpers.retryingTest(() => document.querySelector('img'), "'img' element not found");
```
Your `img` element should have the class `"user-img"`.
@@ -22,7 +22,7 @@ window.fetch = () => Promise.resolve({json: () => Promise.resolve([{ author: 'Wh
You should create a `p` element.
```js
__helpers.retryingTest(() => document.querySelector('p'), "'p' element not found");
await __helpers.retryingTest(() => document.querySelector('p'), "'p' element not found");
```
Your `p` element should have the class `"bio"`
@@ -22,7 +22,7 @@ window.fetch = () => Promise.resolve({json: () => Promise.resolve([{ author: 'Wh
You should create an anchor element.
```js
__helpers.retryingTest(() => document.querySelector('a'), "'a' element not found");
await __helpers.retryingTest(() => document.querySelector('a'), "'a' element not found");
```
Your anchor element should have the class `"author-link"`.
@@ -22,7 +22,7 @@ window.fetch = () => Promise.resolve({json: () => Promise.resolve([{ author: 'Wh
You should create a `div` element before your `p` element.
```js
__helpers.retryingTest(() => document.querySelector('p')?.previousElementSibling?.tagName === 'DIV', "'div' element not found");
await __helpers.retryingTest(() => document.querySelector('p')?.previousElementSibling?.tagName === 'DIV', "'div' element not found");
```
Your `div` element should have the `class` set to `"purple-divider"`.