Error in Quality Assurance Course - suiteSetup Hook #54550
Labels
scope: curriculum
Lessons, Challenges, Projects and other Curricular Content in curriculum directory.
status: waiting triage
This issue needs help from moderators and users to reproduce and confirm its validity and fix.
type: bug
Issues that need priority attention. Platform, Curriculum tests (if broken completely), etc.
Describe the Issue
There seems to be a small error in the FreeCodeCamp Quality Assurance course regarding the usage of the suiteSetup hook. In the lesson about simulating actions using a headless browser (Course), there's a code snippet provided:
However, it appears that there's a mistake in this code. The done function should be called with parentheses, like this:
By adding parentheses after
done
, we ensure thatdone
is actually invoked as a function, signaling the completion of the setup. Without the parentheses,done
is passed as a callback function, which could lead to unexpected behavior.Update: The solution to this issue has been found in the forum discussion at this link: (FCC Forum).
Looking forward to hearing your insights!
Affected Page
https://www.freecodecamp.org/learn/quality-assurance/quality-assurance-and-testing-with-chai/simulate-actions-using-a-headless-browser
Your code
Expected behavior
Screenshots
No response
System
Additional context
No response
The text was updated successfully, but these errors were encountered: