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

Create atoms components ui tests #637

Closed
MSzalowski opened this issue Apr 5, 2024 · 1 comment · Fixed by #668
Closed

Create atoms components ui tests #637

MSzalowski opened this issue Apr 5, 2024 · 1 comment · Fixed by #668
Assignees

Comments

@MSzalowski
Copy link
Contributor

Why

To be able to track bugs easily at the earliest moment.

What

Provide UI testing to existing atoms.

How

  1. In package.json add:
"scripts": {
   ...
   "test:ui": "vitest --ui"
}
  1. Next to the component create file ComponentName.test.tsx
  2. Every component test should test its interaction and how the styles/events behaves.
@MSzalowski
Copy link
Contributor Author

Component: ActionRadio
What should be tested:

  • onChange has been executed on click with the value provided in value
  • styles has been changed on isChecked change
  • should display correct text props

@MSzalowski MSzalowski moved this from In progress to To do in Govtool all Apr 5, 2024
@JanJaroszczak JanJaroszczak moved this from To do to In progress in Govtool all Apr 5, 2024
@JanJaroszczak JanJaroszczak linked a pull request Apr 8, 2024 that will close this issue
5 tasks
@MSzalowski MSzalowski moved this from In progress to In review in Govtool all Apr 9, 2024
JanJaroszczak added a commit that referenced this issue Apr 11, 2024
…-ui-tests

[#637] Create atoms components ui tests
@github-project-automation github-project-automation bot moved this from In review to Done in Govtool all Apr 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

2 participants