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

Actual exam question for Salesforce's JS-Dev-101 exam
Question #: 6
Topic #: 5
[All JS-Dev-101 Questions]

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?

Show Suggested Answer Hide Answer
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.

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


Contribute your Thoughts:

0/2000 characters
Quentin
4 days ago
I feel like this is definitely a false positive because the test is expecting something that doesn't match the actual output.
upvoted 0 times
...
Dorthy
9 days 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?
upvoted 0 times
...
Leonor
14 days ago
I think this might be a false negative since the test is looking for something that isn't there anymore.
upvoted 0 times
...

Save Cancel