E2E
reference link
https://arc.net/folder/C440CD99-59D9-43B7-8E44-C31293E55D11
https://arc.net/space/2D2B5363-0C91-447E-BB80-FFB316325667
That's a code smell. It's a very strong indication that you have a slow test suite. I would argue that you should test login via the UI once to ensure it works. If the button name changes one test breaks. 그것은 코드 냄새입니다. 이는 느린 테스트 스위트가 있다는 매우 강력한 표시입니다. UI를 통해 로그인을 한 번 테스트하여 작동하는지 확인해야한다고 주장합니다. 단추 이름이 변경되면 테스트가 중단됩니다.
Every other test should programmatically login. If you're logging in via UI 50 times because you wrote a page object to make it easy you just added a ton of compute cost and execution time. Figure out how to do it with requests and cookie management and import that function. Use it in a before or beforeEach hook.
다른 모든 테스트는 프로그래밍 방식으로 로그인해야 합니다. 쉽게 하기 위해 페이지 개체를 작성했기 때문에 UI를 통해 50번 로그인하는 경우 엄청난 컴퓨팅 비용과 실행 시간이 추가되었습니다. 요청 및 쿠키 관리로 수행하는 방법을 파악하고 해당 기능을 가져옵니다. 또는 beforeEach 훅에 before 사용하십시오.
Edit: Or use one of the other pw authentication methodologies 편집 : 또는 다른 pw 인증 방법론 중 하나를 사용하십시오.