Our great sponsors
-
SurveyJS
Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App. With SurveyJS form UI libraries, you can build and style forms in a fully-integrated drag & drop form builder, render them in your JS app, and store form submission data in any backend, inc. PHP, ASP.NET Core, and Node.js.
I used cypress-cucumber-preprocessor library to integrate Cucumber into Cypress testing.
So let me jump right into my solution. For this I am using an awesome end-to-end testing library called cypress.io, combined with Cucumber scenarios using Gherkin syntax. Please refer the documentation if you are new to Cypress as I will not be going through the basics.
For this, a developer usually replicates the data that the app consumes from a production environment to a local environment often known as mock data. There are several ways of serving mock data in a local host server, for example using a node server like express or a library like mockAPI. Either way one needs to have many local JSON files that need to be served in place of the response data coming from the API request.
So let me jump right into my solution. For this I am using an awesome end-to-end testing library called cypress.io, combined with Cucumber scenarios using Gherkin syntax. Please refer the documentation if you are new to Cypress as I will not be going through the basics.