Cypress는 E2E테스트, 통합테스트, 유닛테스트 가능하다.
실제로 효과가 있는 테스팅 프로세스를 추구한다.
대부분 테스팅 툴은 브라우저의 외부에서 작동되고 네트워크를 통해 명령을 실행하는 방식으로 작동하지만 Cypress는 정반대이다.
Whether it is the window, the document, a DOM element, your application instance, a function, a timer, a service worker, or anything else - you have access to it in your Cypress tests.
Having ultimate control over your application, the network traffic, and native access to every host object unlocks a new way of testing that has never been possible before.
prevent act like a user
With Cypress you can programmatically interact and control your application. You no longer have to use your UI to build up state.
That means you do not have to visit a login page, type in a username and password and wait for the page to load and/or redirect for every test you run.
Cypress will pause command execution until the following page is fully loaded. You can even tell Cypress to wait on specific network requests to finish.
test with local sever