Intro to React Testing: Provide background context for UI testing #30146
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Because
This is the first lesson on UI testing which is a bit different to prior testing content.
People often struggle to grasp the value of UI testing due to narrower experience with simpler projects where they can manually test the UI, and don't always make the connection between the value of this and non-UI testing.
Instead of diving straight into setup and syntax, it would benefit to provide a little background context for UI testing and its value.
While we're at it, a small mention of
jsdom
will also provide context for how the tests actually work/what they're doing (otherwise it's a bit of a black box when the setup guide tells people to install it but they don't know why). No need to dive deep - any further can be independently explored.This PR
jsdom
Issue
Closes #29377
Additional Information
Pull Request Requirements
location of change: brief description of change
format, e.g.Intro to HTML and CSS lesson: Fix link text
Because
section summarizes the reason for this PRThis PR
section has a bullet point list describing the changes in this PRIssue
section