mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-09-24 23:01:18 +08:00
fix(curriculum): allow spaces in travel agency page (#62259)
This commit is contained in:
+4
-4
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user