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
End-to-end tests and Unit tests. We should start with unit tests and then end-to-end tests. For the Python side and JS side, both PyScript APIs directly and using our examples to test user experiences with playwright.
Check the DOM and the possible interactions (playwright)
We want to write individual tests for each individual examples
We want to try to do what an user would do
it's a good time to define which examples we want to keep in the repository and which should go to the collective
Check the console for messages (JS offers that, Python might)
We need to test the actual library (pytest for the python side, we should use plain TS for the TS side)
We want unit tests for each of the functions on the python side, on the TS side we should check what the objects are doing and then write unit test for them
Some things that can help us in the process of writing good code 🙂 :
We might want to use the POM(page object model) design pattern
What kind of tests do we want?
End-to-end tests and Unit tests. We should start with unit tests and then end-to-end tests. For the Python side and JS side, both PyScript APIs directly and using our examples to test user experiences with playwright.
Check the DOM and the possible interactions (playwright)
Check the console for messages (JS offers that, Python might)
We need to test the actual library (pytest for the python side, we should use plain TS for the TS side)
Some things that can help us in the process of writing good code 🙂 :
Tests in depth
@madhur-tandon @antocuni @fpliger @ntoll
The text was updated successfully, but these errors were encountered: