Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

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

Select an option

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

NeetoForm test cases for Learn Playwright book - Medium

Access control the form

  1. Create a form and publish it.
  2. Navigate to the configure tab and click on Access control card.
  3. Select the option Secure with password and enter a password.
  4. Open the form in a new window without the user session related cookies of the logged in user and verify the form is password protected.
  5. Submit the form and verify the response.

Video: https://shreya-kurian.neetorecord.com/watch/030f9e24-9e5c-4d8e-8614-23da49dc5161

Unique submissions

  1. Create and publish a form.
  2. Navigate to the configure tab and click on Unique subnission card.
  3. Check Use cookies option.
  4. Ensure that one cannot make response twice.
  5. Ensure the form can be submitted with different cookies.
  6. Check No check option and ensure now multiple responses can be made.

Video: https://shreya-kurian.neetorecord.com/watch/d4a95909-67ef-44e7-997f-959bac528ec3

Conditional logic

  1. Create a new form with single choice element as the first element in the form and email address as the second element.
  2. Modify the options of single choice field such that it only contains 2 options.
  3. Navigate to the configure tab and select Conditional Logic card.
  4. Add a new conditional logic such that when one option of the single choice element is chosen, the email address will be shown
  5. Save the changes and publish the form.
  6. Verify that in the published form, the email address field is shown only when the configured option is chosen else is hidden.
  7. Disable the conditional logic and verify that both the fields are always visible irrespective of the option chosen.

Video: https://shreya-kurian.neetorecord.com/watch/2262134e-7007-44cf-9960-491b0d5f88dc

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