fix(curriculum): allow newlines in move review page tests (#60689)

This commit is contained in:
Stephen Mutheu Muya
2025-06-04 00:33:32 +03:00
committed by GitHub
parent d7d027afb7
commit 598534e264

View File

@@ -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*\)$/);
```