As we have completed the book, it is now time to gain hands-on experience with a real-world application. For this, we can use neetoForm.
Apart from just automating the tests, ensure that you adhere to all the best practices and concepts mentioned in this book. Additionally, you can refer to the official Playwright documentation for advanced topics. Also, do not forget to perform a proper cleanup after performing each test to maintain a clean and consistent test environment, which is shared by everyone performing this task.
- Click on add new form.
- Create a form from scratch.
- Add full name, phone numer fields to the form.
- Publish the form.
- Open the published form by clicking on the view publised version button.
- Check if the fields are visible.
- Check if the field throws error when filled with invalid emails and phone numbers.
- Check if the form can be submitted without filling any fields.
- Fill in values to the fields and submit the form. (Add United stated number)
- Verify the thank you page is visible.
- Go back to the form build tab and click on submissions.
- Verify the newly submitted response is visible.
Video: https://shreya-kurian.neetorecord.com/watch/7f0eabb3-5482-4c3b-b5d1-916961ecb281
- Create a new form and add single and multi choice elements.
- Add 6 more options to both single and mutli choice elements.
- Hide the multi choice question.
- Randomize the options of single element by clicking on the randomize option.
- Publish the form and open the published form by clicking on the view publised version button.
- Ensure that the options of single choice element is randomized.
- Verify the multi choice element is hidden.
- Uncheck the hide option of multichoice element and publish the form.
- Ensure the field is now visible on the published form.
Video: https://shreya-kurian.neetorecord.com/watch/5152a8bc-6fe7-4192-aa48-0f6a6115f530
- Create a new form.
- Verify the visits, starts, submissions count and completion rate is 0 in the insights tab under submissions.
- Open the published form.
- Verify the visits count has increased by 1.
- Open the published form again and type in a value to the field without submitting the form.
- Verify the visits and starts count has increased by 1.
- Open the published form again and submit the form.
- Verify the visits, starts and submissions count has increased by 1. Also verify the completion rate.
Video: https://shreya-kurian.neetorecord.com/watch/24072ffa-2ca6-4932-87d7-7b202bcca1c4