Post an entry to your journal contrasting unit testing with end-to-end testing.
This week we created an automated testing to test our front end React application. This test script automatically opens the we browser, inputs the text field, and clicks the button in order to check the correctness of the front end. In addition to it's automated style, this test works directly on the database instead of creating mock objects. It also requires the retrieval of the web page so it's important to code in an await function. I had trouble using the XPATH notation to grab the elements but after practicing this week, I feel more confident.
Testing seems like it's a lot of work but it's needed to make sure that your code runs well despite the conditions that it's in.
No comments:
Post a Comment