Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save shreyakurian02/738734e50122f712aba4f447f84b334c to your computer and use it in GitHub Desktop.

Select an option

Save shreyakurian02/738734e50122f712aba4f447f84b334c to your computer and use it in GitHub Desktop.

NeetoForm test cases for Learn Playwright book - Easy

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.

Create and submit a form

  1. Click on add new form.
  2. Create a form from scratch.
  3. Add full name, phone numer fields to the form.
  4. Publish the form.
  5. Open the published form by clicking on the view publised version button.
  6. Check if the fields are visible.
  7. Check if the field throws error when filled with invalid emails and phone numbers.
  8. Check if the form can be submitted without filling any fields.
  9. Fill in values to the fields and submit the form. (Add United stated number)
  10. Verify the thank you page is visible.
  11. Go back to the form build tab and click on submissions.
  12. Verify the newly submitted response is visible.

Video: https://shreya-kurian.neetorecord.com/watch/7f0eabb3-5482-4c3b-b5d1-916961ecb281

Customize form's field elements

  1. Create a new form and add single and multi choice elements.
  2. Add 6 more options to both single and mutli choice elements.
  3. Hide the multi choice question.
  4. Randomize the options of single element by clicking on the randomize option.
  5. Publish the form and open the published form by clicking on the view publised version button.
  6. Ensure that the options of single choice element is randomized.
  7. Verify the multi choice element is hidden.
  8. Uncheck the hide option of multichoice element and publish the form.
  9. Ensure the field is now visible on the published form.

Video: https://shreya-kurian.neetorecord.com/watch/5152a8bc-6fe7-4192-aa48-0f6a6115f530

Verify form insights

  1. Create a new form.
  2. Verify the visits, starts, submissions count and completion rate is 0 in the insights tab under submissions.
  3. Open the published form.
  4. Verify the visits count has increased by 1.
  5. Open the published form again and type in a value to the field without submitting the form.
  6. Verify the visits and starts count has increased by 1.
  7. Open the published form again and submit the form.
  8. 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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment