Skip to content

Commit 35ce565

Browse files
fix(curriculum): update description and hints of lab-football-team-cards (freeCodeCamp#61437)
1 parent df7e70b commit 35ce565

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

curriculum/challenges/english/25-front-end-development/lab-football-team-cards/66e7ee20b79186306fc12da5.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ Fulfill the user stories below and get all the tests to pass to complete the lab
3737
</div>
3838
```
3939

40-
1. When the dropdown menu is used to select one of the positions, only players of that position should be shown. If the `"All Players"` option is selected, then all of the players should display on the page.
40+
1. When the dropdown menu is used to select one of the positions, only the `.player-card` elements for players of that position should be present. If the `"All Players"` option is selected, then all of the players should display on the page.
4141

4242
# --hints--
4343

@@ -117,7 +117,7 @@ assert.equal(yearElement?.innerText.trim(), footballTeam.year);
117117
assert.equal(headCoachElement?.innerText.trim(), footballTeam.headCoach);
118118
```
119119
120-
When the option `All Players` is selected, all players should be shown within `#player-cards`.
120+
When the option `All Players` is selected, all players should be present within `#player-cards`.
121121
122122
```js
123123
const select = document.querySelector('#players')
@@ -133,7 +133,7 @@ const arrayFromPage = Array.from(playerCards).map(el => ({
133133
assert.sameDeepMembers(arrayFromPage, footballTeam.players);
134134
```
135135
136-
When the option `Position Forward` is selected, only forward players should be shown within `#player-cards`.
136+
When the option `Position Forward` is selected, only forward players should be present within `#player-cards`.
137137
138138
```js
139139
const forwards = footballTeam.players.filter(({position}) => position === 'forward')
@@ -150,7 +150,7 @@ const arrayFromPage = Array.from(playerCards).map(el => ({
150150
assert.sameDeepMembers(arrayFromPage, forwards);
151151
```
152152
153-
When the option `Position Midfielder` is selected, only midfielder players should be shown within `#player-cards`.
153+
When the option `Position Midfielder` is selected, only midfielder players should be present within `#player-cards`.
154154
155155
```js
156156
const midfielders = footballTeam.players.filter(({position}) => position === 'midfielder')
@@ -167,7 +167,7 @@ const arrayFromPage = Array.from(playerCards).map(el => ({
167167
assert.sameDeepMembers(arrayFromPage, midfielders);
168168
```
169169
170-
When the option `Position Defender` is selected, only defender players should be shown within `#player-cards`.
170+
When the option `Position Defender` is selected, only defender players should be present within `#player-cards`.
171171
172172
```js
173173
const defenders = footballTeam.players.filter(({position}) => position === 'defender')
@@ -184,7 +184,7 @@ const arrayFromPage = Array.from(playerCards).map(el => ({
184184
assert.sameDeepMembers(arrayFromPage, defenders);
185185
```
186186
187-
When the option `Position Goalkeeper` is selected, only goalkeeper players should be shown.
187+
When the option `Position Goalkeeper` is selected, only goalkeeper players should be present.
188188
189189
```js
190190
const goalkeepers = footballTeam.players.filter(({position}) => position === 'goalkeeper')

0 commit comments

Comments
 (0)