-
Notifications
You must be signed in to change notification settings - Fork 1
Refactor/#003 playwright 선택자 설정 및 시나리오 작성 #9
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
The head ref may contain hidden characters: "refactor/playwright_\uC120\uD0DD\uC790_\uC124\uC815_\uBC0F_\uC2DC\uB098\uB9AC\uC624_\uC791\uC131"
Conversation
- 로그인 시나리오 - 페이지 추가 - 블록 추가
- BottomNavigator 페이지 버튼(iconButton-{idx})
- 페이지 추가 버튼(addPageButton)
-로그인 모달 버튼(modalPrimaryButton, modalSecondaryButton)
- 사이드바 페이지 열기 버튼(pageItem-{idx})
- 페이지 아이콘 버튼(pageItem-{idx}-pageIconButton)
- 사이드바 로그인 버튼(sidebarLoginButton, sidebarLogoutButton)
1. 회원가입 - 회원가입 성공 - 회원가입 실패: 사용중인 이메일 - 회원가입 실패: 유효성 검사 2. 로그인 - 로그인 성공 - 로그인 실패: 잘못된 비밀번호 - 로그인 실패: 이메일 형식 검증 - 로그인 취소 - 로그아웃 3. 모달 닫기
- BottomNavigator 아이콘버튼: BottomNavigator-iconButton-{idx}/
- 아이콘 모달 선택자 추가: iconModal
- 페이지 삭제 버튼 선택자 추가: pageDeleteButton-{idx}
- 워크스페이스 페이지 선택자 추가: page-{idx}
- 페이지 추가 - 페이지 열기 - 페이지 삭제 - 페이지 아이콘 변경
- 사이드바 토글 테스트 - 테스트 순차적으로 실행되도록 수정
- 페이지 최대화 - 페이지 최소화 - 페이지 닫기
- 사이드바 페이지 제목(sidebarTitle-{idx})
- 에디터(editor-{idx})
- 블록(block-{idx})
- 블록 추가 버튼(addNewBlockButton)
- 아이콘 블록(iconBlock)
- 텍스트영역(contentEditable)
- 페이지 제목(pageTitle-{idx})
- 블록 추가 - 페이지 제목 변경 - 마크다운 문법 변환
minjungw00
left a comment
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.
수고많으셨습니다!
hyonun321
left a comment
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.
확인했습니다. 결국 id를 넣어줘서 찾아야하는게 정답인가보군요.
처음엔 nth번쨰 컴포넌트를 찾으면서 테스트코드를 작성하려고했는데 시나리오를 어디까지 맞춰줘야하나 고민했거든요 🙄
그런데 페이지 삭제나 초기화 같은 시나리오를 넣어서 상태를 유지시키는 방법이 오히려 단순하지만 명확하게 테스트할 수 있다는걸 알게됐습니다.
수고하셨습니다.
(console.log 같은것도 다 테스트 코드에 포함되는거겠죠?)
📝 변경 사항
🔍 변경 사항 설명
🙏 질문 사항
📷 스크린샷 (선택)
✅ 작성자 체크리스트