Comparative analysis of Cypress and Playwright frameworks in end-to-end testing for applications based on Angular

Main Article Content

DOI

Przemysław Gosik

przemyslaw.gosik@pollub.edu.pl

Marek Miłosz

m.milosz@pollub.pl

https://orcid.org/0000-0002-5898-815X

Abstract

The aim of this article is to present the results of a comparative analysis of the Cypress and Playwright frameworks, focusing on their efficiency in the end-to-end testing of Angular-based web applications. At the outset, a hypothesis was formulated that Playwright surpasses Cypress in testing Angular-based applications due to lower memory consumption, faster execution of end-to-end tests, and better support for tests across multiple browsers. Subsequently, a study was conducted, which involved implementing defined test scenarios in both tools. The time and memory consumption of each automated test were measured. Additionally, the ease of use of the tools was evaluated by analysing the length of the code required for each test and the resulting file size. The experiment fully confirmed the formulated hypothesis.

Keywords:

Cypress, Playwright, End to end testing, Test automation

References

Article Details

Gosik, P., & Miłosz, M. (2025). Comparative analysis of Cypress and Playwright frameworks in end-to-end testing for applications based on Angular. Journal of Computer Sciences Institute, 36, 320–327. https://doi.org/10.35784/jcsi.7662