issues
search
INtiful
/
SootheWithMe
같이 달램
https://soothe-with-me.vercel.app/
0
stars
0
forks
source link
test: input UI 컴포넌트 테스트 코드 작성
#58
Closed
hakyoung12
closed
2 weeks ago
hakyoung12
commented
3 weeks ago
✏️ 작업 내용
input 컴포넌트
input-text 컴포넌트
password input 컴포넌트
📷 스크린샷
✍️ 사용법
input 컴포넌트
[x] 기본 렌더링
[x] 플레이스홀더 텍스트가 제대로 표시된다
[x] 입력 값이 올바르게 설정된다
[x] type 속성이 제대로 설정된다
[x] hasError prop이 true일 때 에러 스타일이 적용된다
[x] className prop이 적용된다
[x] hasError prop 과, className prop 이 동시에 적용될 때도 둘 다 적용된다.
[x] ref가 적용된다.
input-text 컴포넌트
[x] 기본 렌더링
[x] 플레이스홀더 텍스트가 제대로 표시된다
[x] 입력 값이 올바르게 설정된다
[x] className prop이 적용된다
[x] onChange 핸들러가 호출된다
[x] spellCheck가 적용된다.
password input 컴포넌트
[x] 기본 렌더링
[x] 버튼 클릭 시 입력 타입이 변경되는지 확인
🎸 기타
✏️ 작업 내용
📷 스크린샷
✍️ 사용법
input 컴포넌트
input-text 컴포넌트
password input 컴포넌트
🎸 기타