Build a Set of Football Team Cards - Build a Set of Football Team Cards

I know it seams like a chore, why don’t we just tell you what to fix in your code

Because learning to debug now will make your life easier in the future

1 Like

To add to what @ILM has said, these are the exact steps that we will take to find and fix the problem. I have followed this method and found the problem in your code already.

  • What is the requirement of the first failing test? =( 11. When the option All Players is selected, all players should be present within #player-cards .)
  • Check the related User Story and ensure it’s followed precisely.(i checked but ei cant find a problem)
  • What line of code implements this?(i dont know)
  • What is the result of the code and does it match the requirement? (Write the value of a variable to the console at that point in the code if needed.(i think it match but correct me if i’m wrong)
  • Are there any errors or messages in the console?

ohh my God .it passed but the problem doesn’t even look like a problem

1 Like

this is soo fraustrating

good job in figuring it out! programming can be really really frustrating at times

Programming can definitely be really frustrating, I’ve been there as well.

Be really careful with spacing, punctuation and capitalization. Your string generally need to match exactly to the examples. The tests are automated so they can’t really account for every variation.

You can Copy/Paste any given strings or code, that will help keep it the same.

I’m really glad you got it!

@ILM
@pkdvalis

I was actually about to post a new question about the same lab, Build a Set of Football Team Cards.

The first issue I ran into was test 11. At first, it was confusing because the preview looked fine, so I thought my code was correct. But after going back through your guiding questions, especially the one about “Check the related User Story”, I spotted the problem. In the 11th User Story the div is supposed to have the class player-card, but I had set it to just card. Such a small mistake, but it made all the difference.

I really appreciate the way you encourage us to use the skills and tools we’ve been given to solve these problems ourselves. It’s reassuring to know that even when we make naive mistakes, you stay patient and supportive. That mindset helps me build confidence step by step.

1 Like

Thanks so much for that feedback!

Many, many problems can be solved by going back and carefully reviewing the User Stories :+1: It’s easy to get focused on the tests but they can also be misleading.