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
Writing integration test is very hard, especially when you are testing a Single Page Applications. Data are loaded asynchronously and it is difficult to know exactly when an element will be displayed in the page.
Puppeteer API is great, but it is low level and not designed for integration testing.
This API is designed for integration testing:
It will wait for element before running an action
It adds additional feature like matching an element using text
Sounds good. I don't have any knowledge of testing yet. Can I still take this issue ? I am willing to learn the testing though. This looks good to start with.
whyDontI
changed the title
Add expect-puppeteer and rewrite one of the existing tests using it
rewrite RDS homepage tests using expect-puppeteer
Feb 7, 2022
https://www.npmjs.com/package/expect-puppeteer
Why do we need it
Writing integration test is very hard, especially when you are testing a Single Page Applications. Data are loaded asynchronously and it is difficult to know exactly when an element will be displayed in the page.
Puppeteer API is great, but it is low level and not designed for integration testing.
This API is designed for integration testing:
Refactor tests for RDS homepage
The text was updated successfully, but these errors were encountered: