Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Salesforce JS-Dev-101 Exam - Topic 5 Question 6 Discussion

Posted by Deja on Apr 08, 2026 at 05:35 PM

A test searches for:

But the actual HTML is:

The test fails because it expects a class that no longer exists.

What type of test outcome is this?

Suggested Answer: A

________________________________________

Comprehensive and Detailed Explanation From Exact Extract JavaScript Knowledge

Definitions:

False negative The test reports a failure even though the feature actually works.

False positive The test reports success when it should not.

True positive Correctly identifies something is working.

True negative Correctly identifies something is not working.

In this scenario:

The checkout button does exist, so the feature works.

The test fails incorrectly, because it is checking for the wrong selector.

That is the definition of a false negative.

________________________________________

JavaScript Knowledge Reference (text-only)

Test outcome classification: false negative = feature works but test fails.

==================================================


Get Premium JS-Dev-101 Questions as Interactive Web-Based Practice Test or PDF Real Exam Format Detailed Explanations Instant Access Get Your Practice Test
21 comments · newest first
TE
Terrilyn 1 month ago
False negative seems wrong here.
NA
Nan 2 months ago
I feel confused about this one.
LI
Linwood 2 months ago
No, it’s definitely a False positive.
DO
Donte 2 months ago
True positive makes sense too, right?
LA
Lavonda 2 months ago
Yeah, it fails but the button is there.
AL
Alica 2 months ago
I think it's a False positive.
BR
Brandee 2 months ago
Definitely False positive. The class mismatch causes the failure.
LA
Lajuana 3 months ago
False negative seems unlikely here. It's about the class.
OM
Omega 3 months ago
No, it can't be True negative. The test is failing.
EA
Earleen 3 months ago
I feel confused. Why not True negative?
SI
Sina 3 months ago
Agreed, it's a False positive. The expectation is wrong.
ME
Melodie 3 months ago
I think it's a False positive. The test fails incorrectly.
FI
Filiberto 4 months ago
I thought false negatives were the ones that fail when they shouldn't.
TO
Tomas 4 months ago
This is a classic case of a test not matching the actual code.
JE
Jenifer 4 months ago
Wait, how can it be a false positive? Isn't it just failing?
CO
Corinne 5 months ago
Totally agree, it's definitely a false positive!
AR
Armanda 6 months ago
It's a false positive since the test is looking for something that isn't there.
JU
Junita 6 months ago
I thought a false negative was when the test fails to detect something that should be there, so maybe that's the right answer here?
QU
Quentin 6 months ago
I feel like this is definitely a false positive because the test is expecting something that doesn't match the actual output.
DO
Dorthy 6 months ago
I'm not entirely sure, but I remember a similar question where a test failed because of a missing class. Could it be a true positive?
LE
Leonor 7 months ago
I think this might be a false negative since the test is looking for something that isn't there anymore.
0/2000 characters

Save Cancel