-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Test] Cypress 테스트케이스 #772 #784
Conversation
include → equal
include → equal
(시작~일반전 슬롯 등록)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
수고하셨습니다 👍
if (intraId1 === userId || intraId2 === userId) { | ||
return; | ||
} else { | ||
throw new Error('일치하는 유저 아이디가 없습니다'); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
여기서부터는 cy.should
말고 Error
로 처리하신 이유가 궁금합니다! 테스트를 바로 중단하기 위해서인가요??
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should를 써도 바로 중단되지 않나요?? 어차피 중단될거라면 Error 문구를 띄우는게 좋다고 생각했어요
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
제가 알기론 should는 타임아웃 전까지 재시도하고 Error는 재시도 없이 바로 끝내버리는데, should 쓰시다가 아래에선 Error로 바꾸셨길래 뭔가 의도가 있으신건지 궁금해서 여쭤봤습니다 :) 테스트 결과는 문제없이 잘 나오니 어떻게 처리하든 괜찮은 것 같습니다👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cy.should
는 컴포넌트 안에 무언가 있을 때 비교하는데 위에서는 두 컴포넌트 중 한개라도 유저의 아이디를 가지고 있는지 찾는 케이스여서 should로는 원하는 비교를 못하긴 했어요!
📌 개요
💻 작업사항
테스트 실행 방법
✅ 변경로직