Skip to content
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: button component unit 테스트 #43

Merged
merged 1 commit into from
May 3, 2024
Merged

Conversation

hyunwleeee
Copy link
Collaborator

  • 정상적으로 렌더링됩니다.
  • isLoading인 경우 화면에 로더가 표시되며, 버튼이 비활성화 됩니다.
  • disabled 경우 비활성화됩니다.
  • variant
    • variant가 filled인경우 bg-primary text-neutral-50 클래스를 가집니다.
    • variant가 outlined인경우 border border-primary 클래스를 가집니다.
    • variant가 transparent인경우 text-neutral-500 bg-white dark:bg-[#0C0C0C] 클래스를 가집니다.
    • variant가 bottom인경우 absolute bottom-5 mx-auto w-[calc(100%-2.5rem)] bg-primary text-neutral-50 클래스를 가집니다.
  • type
    • type이 submit인경우 submit 속성을 가집니다.
    • type이 reset인경우 reset 속성을 가집니다.
    • type이 button인경우 button 속성을 가집니다.
  • onClick이 정상적으로 동작합니다.

@hyunwleeee hyunwleeee requested review from kd02109 and ho991217 May 2, 2024 07:36
@hyunwleeee hyunwleeee self-assigned this May 2, 2024
Copy link

vercel bot commented May 2, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
danfesta ✅ Ready (Inspect) Visit Preview May 2, 2024 7:36am

@ho991217 ho991217 merged commit f7ee0ae into main May 3, 2024
2 checks passed
@ho991217 ho991217 added the test Code related to testing label May 3, 2024
@ho991217 ho991217 linked an issue May 3, 2024 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
test Code related to testing
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Button 컴포넌트 테스트 코드 작성
2 participants