mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-04-19 13:00:51 -04:00
fix(curriculum): allow newlines in move review page tests (#60689)
This commit is contained in:
committed by
GitHub
parent
d7d027afb7
commit
598534e264
@@ -82,7 +82,7 @@ The `span` element inside the rating paragraph should have ten stars, either fil
|
||||
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(spanEl?.innerText.trim(), /^[⭐☆]{10}$/);
|
||||
assert.match(fullRatingText, /Movie Rating:?\s*[⭐☆]{10}\s*\(\s*\d+(?:\.\d+)?\s*\/\s*10\s*\)$/);
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user