mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-06-19 21:09:51 +08:00
fix(curriculum): make spaces optional in movie rating test (#60524)
Co-authored-by: Huyen Nguyen <25715018+huyenltnguyen@users.noreply.github.com>
This commit is contained in:
parent
1b14282da0
commit
469f0c0f0b
@ -83,7 +83,7 @@ const spanEl = document.querySelector("main p:nth-of-type(2) span");
|
||||
const fullRatingText = document.querySelector("main p:nth-of-type(2)")?.textContent.replace(/\s+/g, ' ').trim();
|
||||
|
||||
assert.match(spanEl?.innerText, /^[⭐☆]{10}$/);
|
||||
assert.match(fullRatingText, /Movie Rating:?\s?[⭐☆]{10}\s+\(\d+(?:\.\d+)?\/10\)$/);
|
||||
assert.match(fullRatingText, /Movie Rating:?\s*[⭐☆]{10}\s*\(\s*\d+(?:\.\d+)?\s*\/\s*10\s*\)$/);
|
||||
```
|
||||
|
||||
The `span` element inside the rating paragraph should have an `aria-hidden` attribute set to `true`.
|
||||
|
||||
Loading…
Reference in New Issue
Block a user