The unified login system has undergone comprehensive testing to ensure its reliability, security, and performance. Our testing strategy encompasses both unit testing and end-to-end (E2E) testing, allowing us to validate the functionality of each individual component as well as the entire authentication process in real-world scenarios.

To know more about how do a good test, read the following link:

https://estratec.visualstudio.com/MasivianFront/_wiki/wikis/MasivianFront.wiki/713/Arquitectura-del-Testing

Unit testing

Unit tests are essential for verifying the core logic of each component within the system. By conducting these tests, we ensure that each function and module operates correctly in isolation, enabling us to identify and address potential issues at an early stage.

To makes these testing’s we use Vitest, and testing only the Js Files that have a logic responsability how Api’s and Helpers, cause the router, language or others doesn’t make sense try to test.

image.png


E2E Testing

In addition to unit testing, end-to-end (E2E) testing simulates user interactions with the system. This approach allows us to evaluate the complete authentication workflow, ensuring that the system performs seamlessly from start to finish in environments that closely mimic actual usage.

To this we use Playwright, a powerfull tool that provides a loot of features to achieve reliability and check the User can do all the Flows correctly. To do that is recommended has on mind the principal elements that determine a flow, like success banners, view changes, etc.

image.png