You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
We are currently not running tests for .tsx files because they are slow. The .tsx files recursively render components.
For instance, let's say component A has inner components B and C.
When testing component A, it will render component B and C. To fix this, we can mock component B and C so as to test component A in isolation.
However, we do not need to test all the tsx components individually. We can just test the root App component that renders all other components. From this single test, we can make all necessary assertions to ensure all components are rendered as expected.
What are we testing? What the end user sees. For example, when you click on the Request headers tab, you'll see textboxes for the request headers. These tests confirm that what we expect the user to see are actually available.
We are testing the root component which renders all other components. All necessary assertions are made on this single test.
What these tests do not cover: The UI placement of components. As long as a component is rendered and what is expected on the UI is available, these tests will pass. We cannot catch positioning/placement/layout bugs with these tests. This is where we will use playwright.
We first test the whole page to ensure that all major sections are rendered like so:
We then test the functionality of the different sections. For instance, we are confirming that clicking the settings button renders a drop-down with the buttons 'change theme' and 'get a sandbox with sample data'
Describe the bug
We are currently not running tests for .tsx files because they are slow. The .tsx files recursively render components.
For instance, let's say component A has inner components B and C.
However, we do not need to test all the tsx components individually. We can just test the root App component that renders all other components. From this single test, we can make all necessary assertions to ensure all components are rendered as expected.
This will be an extension of this effort: #1513
The text was updated successfully, but these errors were encountered: