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.
References
[1] W. T. Tsai, X. Bai, R. Paul, W. Shao, V. Agarwal, End-to-end integration testing design, In 25th Annual International Computer Software and Applications Conference (COMPSAC) (2001) 166–171, https://doi.org/10.1109/CMPSAC.2001.960613.
[2] BrowserStack - practical guide to E2E testing. End to End testing: Tools, Types and Best Practices, https://www.browserstack.com/guide/end-to-end-testing, [24.11.2024].
[3] R. Soundarya, B. K. Srinivas, Automation of End-to-End Testing and Their Importance, Int. J. Res. Appl. Sci. Eng. Technol. 10(7) (2022) 4280–4283, https://doi.org/10.22214/ijraset.2022.45940.
[4] B. García, J. M. del Alamo, M. Leotta, F. Ricca, Exploring Browser Automation: a Comparative Study of Selenium, Cypress, Puppeteer, and Playwright, Proceedings of Quality of Information and Communications Technology (QUATIC 2024), Communications in Computer and Information Science 2178 (2024) 142–149, https://doi.org/10.1007/978-3-031-70245-7_10.
[5] F. Wąsik, M. Pojęta, M. Plechawska-Wójcik, Comparative analysis of selected tools for automation testing of web applications, J. Comput. Sci. Inst. 28 (2023) 229–235, https://doi.org/10.35784/jcsi.3689.
[6] P. Pasławski, M. Pańczyk, Comparison of selected tools for automation testing of web applications, J. Comput. Sci. Inst. 31 (2024) 145–150, https://doi.org/10.35784/jcsi.6238.
[7] M. Kuutila, M. Mäntylä, P. Raulamo-Jurvanen, Benchmarking web-testing: Selenium versus Watir and the choice of programming language and browser, arXiv Preprint (2016) arXiv:1611.00578, https://doi.org/10.48550/arXiv.1611.00578.
[8] Angular documentation. Home – Angular, https://angular.dev, [24.11.2024].
[9] A. K. Sahani, P. Singh, Web development using Angular: a case study, J. Inf. Electr. Electron. Eng. 1(2) (2020) 1–7, http://doi.org/10.54060/JIEEE/001.02.005.
[10] A. Dwivedi, Angular adventures: crafting smart user interfaces, In CodeMosaic, Apress Berkeley CA (2024) 147-174, https://doi.org/10.1007/979-8-8688-0276-8_5.
[11] S. Balsam, D. Mishra, Web application testing—challenges and opportunities, J. Syst. Softw. 219 (2025) 112186, https://doi.org/10.1016/j.jss.2024.112186.
[12] S. Doğan, A. Betin-Can, V. Garousi, Web application testing: a systematic literature review, J. Syst. Softw. 91 (2014) 174–201, https://doi.org/10.1016/j.jss.2014.01.010.
[13] W. Mwaura, End-to-End Web Testing with Cypress: explore techniques for automated frontend web testing with Cypress and JavaScript, Packt Publishing, Birmingham, 2021.
[14] K. Pathak, Web automation testing using Playwright, BPB Publications, New Delhi, 2025.
[15] C. Augusto, Toward an efficient end-to-end test suite execution, In 2023 IEEE 34th International Symposium on Software Reliability Engineering Workshops (2023) 26–29, https://doi.org/10.1109/ISSREW60843.2023.00038.
[16] A. R. Fasolino, P. Tramontana, Towards the generation of robust E2E test cases in template-based web applications, In 2022 48th Euromicro Conference on Software Engineering and Advanced Applications (2022) 104–111, https://doi.org/10.1109/SEAA56994.2022.00024.
[17] Cypress documentation. Why Cypress?, https://docs.cypress.io/guides/overview/why-cypress, [19.10.2024].
[18] Playwright documentation. Fast and reliable end-to-end testing for modern web apps, https://playwright.dev, [19.10.2024].
[19] WebKit project site. The WebKit open source project, https://webkit.org, [19.10.2024].
[20] P. Gosik, D. Grzejszczyk, Web application for learning fast reading, writing and memorizing, Bachelor thesis, Lublin University of Technology, Lublin, 2023.
[21] Schultz Table game example. Schultz Table, https://schultetable.web.app, [30.12.2024].
[22] Flyway documentation. Redgate Flyway documentation, https://documentation.red-gate.com/fd/redgate-flyway-documentation-138346877.html, [30.12.2024].
[23] Python package documentation. psutil, https://pypi.org/project/psutil/, [30.12.2024].