-
Continue reading →: Cypress : Run All Specs with Version 11.2.0
Run All Specs was the most used feature in the Test Runner and When it was removed in Version 10 due to the memory leak issues it was causing, a significantly large amount of users were unhappy, including myself. Cypress always listen to the community and now it has brought…
-
Continue reading →: Cypress: Validating JSON Schema
If we have a use case where we need to read JSON response/object then it’s crucial to have a JSON schema validation. JSON Schema validation ensures the received/read JSON object has all the required properties, length and data type. There are many ways to validate JSON schema and in this…
-
Continue reading →: Cypress: Benefits of Network Interception
One feature of Cypress i adore most is the Capability of intercepting request. With Intercept we can To write tests for all the above scenarios we will use BrowserStack’s demo application . Which looks like below Wait for a request(s) to complete Before writing test let’s understand how these Phone Models are…
-
Continue reading →: How to perform Visual Testing for React Apps using Cypress
React JS is an excellent framework for developing Single Page Applications. React is a Javascript library that provides a flexible way of developing UIs and uses Components to render elements in the UI. In this quick guide, learn to efficiently use Percy in testing a React application to perform Continuous…
-
Continue reading →: Cypress: Introduction to Graphql Testing
What is Graphql Graphql is a query language for APIs which allows us to query to get exactly what we need in the response data. More about graphql basics can be found here Parts of Grapqhl request body A typical graphql request body contains Writing our first test to query data from…
-
Continue reading →: Cypress: Component testing of React application
Introduction React application is made up of components and the react framework comes bundled with testing library @testing-library/react for writing unit tests. The react testing library utilizes JEST to run the tests and the tests runs by creating Virtual DOM and we will not know the look and feel of…
-
Continue reading →: Cypress: Understanding basics of API Testing
We often encounter with APIs in one form or other, it could be stand alone APIs which will be integrated with other third parties or APIs which are driving data to the Front end application from databases. An API has three types of Architecture REST SOAP RPC REST is the…
-
Continue reading →: Cypress: How to Generate Cucumber JSON/HTML Report
Let’s see how to generate HTML and JSON report using latest version of @badeball/cypress-cucumber-preprocessor To generate HTML report which comes inbuilt with Cucumber-js, we need to enable html flag inside cypress-cucumber-preprocessor config, to do that add the below code snipped inside your package.json file Now if we execute our cypress…
-
Continue reading →: Cypress: Validating table column value
Let us consider below table as an example, and in this example we need to get the value from the Columns(Contact/Country) based on the Company name. Below is the HTML structure for the table <table> <tr> <th>Company</th> <th>Contact</th> <th>Country</th> </tr> <tr> <td>Alfreds Futterkiste</td> <td>Maria Anders</td> <td>Germany</td> </tr> <tr> <td>Centro comercial Moctezuma</td> <td>Francisco Chang</td> <td>Mexico</td> </tr> <tr> <td>Ernst Handel</td> <td>Roland Mendel</td> <td>Austria</td> </tr> <tr> <td>Island Trading</td> <td>Helen Bennett</td> <td>UK</td> </tr> <tr> <td>Laughing Bacchus Winecellars</td> <td>Yoshi Tannamuri</td> <td>Canada</td> </tr> <tr> <td>Magazzini Alimentari Riuniti</td> <td>Giovanni Rovelli</td> <td>Italy</td> </tr> </table>…
-
Continue reading →: Cypress: Run Tests in Safari Browser
Cypress always listens to its users and with latest version 10.8.0, Cypress has added experimental feature to support running tests in Safari browser. In order to run the tests in Safari browser ensure Latest version 10.8.0 is installed Add playwright-webkit as dev dependency in your package.json or execute the command…
