diff --git a/curriculum/challenges/english/blocks/lab-travel-agency-page/669e2f60e83c011754f711f9.md b/curriculum/challenges/english/blocks/lab-travel-agency-page/669e2f60e83c011754f711f9.md index 8d33383e9bf..351d62a4948 100644 --- a/curriculum/challenges/english/blocks/lab-travel-agency-page/669e2f60e83c011754f711f9.md +++ b/curriculum/challenges/english/blocks/lab-travel-agency-page/669e2f60e83c011754f711f9.md @@ -122,7 +122,7 @@ assert.isNotEmpty(document.querySelector('p')?.textContent?.trim()); Your first `h2` element should have the text `Packages`. ```js -assert.equal(document.querySelectorAll('h2')[0]?.innerText, 'Packages'); +assert.equal(document.querySelectorAll('h2')[0]?.innerText.trim(), 'Packages'); ``` You should have a `p` element below your first `h2` element. @@ -168,13 +168,13 @@ for (let e of listItems) { The anchor element of your first list item should wrap the text `Group Travels`. ```js -assert.equal(document.querySelectorAll('li > a')[0]?.innerText, 'Group Travels'); +assert.equal(document.querySelectorAll('li > a')[0]?.innerText.trim(), 'Group Travels'); ``` The anchor element of your second list item should wrap the text `Private Tours`. ```js -assert.equal(document.querySelectorAll('li > a')[1]?.innerText, 'Private Tours'); +assert.equal(document.querySelectorAll('li > a')[1]?.innerText.trim(), 'Private Tours'); ``` You should have an `h2` element after your unordered list. @@ -189,7 +189,7 @@ assert.strictEqual( Your second `h2` element should have the text `Top Itineraries`. ```js -assert.equal(document.querySelectorAll('h2')[1]?.innerText, 'Top Itineraries'); +assert.equal(document.querySelectorAll('h2')[1]?.innerText.trim(), 'Top Itineraries'); ``` You should have at least three `figure` elements.