question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Misleading hint message after failing the test

See original GitHub issue

Describe the Issue

I nested an img element withing the figure element, then set the wrong link to the src attribute and checked the code but it hints that I should have a third img element nested in the figure element.

Affected Page

https://www.freecodecamp.org/learn/2022/responsive-web-design/learn-html-by-building-a-cat-photo-app/step-28

Your code

<figure>
  <img src="https://cdn.freecodecamp.org/curriculum/cat-photo-app/lasagna.jpg">
</figure>

Expected behavior

I excpected the hint to tell me that I typed a wrong src value.

Screenshots

issue

System

  • Device:Laptop
  • OS: Ubuntu 20.04
  • Browser: Chrome
  • Version: 101.0.4951.64

Additional context

No response

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
Sboonnycommented, May 18, 2022

I think that’s a good idea.

thank you 🤍.

yes I do think changing that test would be better. I will be honest, although that sounds logical in my head, I haven’t tested it out. so there is a chance that my code won’t work. 😅

1reaction
benjaminJohnson2204commented, May 18, 2022

Oh, I understand now. I think that’s a good idea. So you’re saying we could use that test instead of the test below?

The third image should have an src attribute.

const catsImg = document.querySelectorAll('figure > img')[1];
assert(
catsImg &&
catsImg.getAttribute('src')
);
Read more comments on GitHub >

github_iconTop Results From Across the Web

5 Ways to Bounce Back from Failing an Exam - Active Minds
Here are some tips to keep moving forward when a test goes badly. Resist the urge to agonize over the test. As a...
Read more >
What to do when it all goes wrong – tips for dealing with failure
Don't hide away in shame when things go wrong, read this guide to turning failure to your advantage from author Siobhan Curham.
Read more >
Interview Question: “Tell Me About a Time You Failed” - Indeed
Drew shares interview questions about past failures, mistakes or weaknesses and explains why recruiters asks them and offers example answers for ...
Read more >
reCAPTCHA Help - Google Support
A “CAPTCHA” is a turing test to tell human and bots apart. It is easy for humans to solve, but hard for “bots”...
Read more >
How to Recognize Plagiarism: Tutorials and Tests
I can't pass the test. I've tried over and over and I keep failing. What can I do? Why don't you tell me...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found