Skip to content

Instantly share code, notes, and snippets.

View shreyakurian02's full-sized avatar

Shreya Kurian shreyakurian02

View GitHub Profile

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.

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.

Using reporter APIs to create custom reporters

Though Playwright offers a variety of built-in reporters for test result visualization, sometimes you may need a custom solution tailored to your specific project requirements. Thankfully, Playwright allows you to build your own custom test reporter from scratch. In this blog post, we'll dive into the process of creating a custom reporter that perfectly suits your needs.

Suites

Before diving deep into how to build custom reporters, we need to first understand the hierarchy in which the test cases are arranged. The diagram below gives a pictorial reresentation of the hierearchy of the suites.

image

  1. Root Suite: The top-level suite in the hierarchy represents the entire test suite for the projects. It serves as the root node from which all other suites branch.
  2. Project Suites: Under the root suite, there is a project suite for each TestProject. A TestProject is a logical gr

neetoPlanner - V2

Reorder project fields

Steps

  1. Visit your neetoPlanner subdomain as the admin user.
  2. Create a new project.
  3. Navigate to Settings > Fields
  4. Click on the reorder button and reorder the fields. Drag the Due date field below the Assignee field.