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 tests for frontend (unit test, integration E2E) #28

Open
DaleOrders opened this issue Jun 3, 2023 · 3 comments
Open

Create tests for frontend (unit test, integration E2E) #28

DaleOrders opened this issue Jun 3, 2023 · 3 comments
Labels
💻 frontend web-related ⁉️ needs breakdown Issue is too big need to break into smaller tasks

Comments

@DaleOrders
Copy link
Collaborator

No description provided.

@DaleOrders DaleOrders converted this from a draft issue Jun 3, 2023
@DaleOrders DaleOrders added the 💻 frontend web-related label Jun 3, 2023
@igMike-V
Copy link
Collaborator

igMike-V commented Jun 5, 2023

@semsi-dogruer here is an example that could be broken down into:

Set up Unit testing Environment (Vite-test)
Set up E2E testing Environment (Cypress?, Selenium?, other?) <-- perhaps further, Pick an e2e test suite.
Create Unit tests for XYZ functions.
Create E2E tests for XYZ UX interactions

@parradaniela
Copy link
Collaborator

parradaniela commented Jun 5, 2023

LOL I got a notification about this Issue and came straight here to say "Shouldn't this be multiple tickets?" 😂 Seems like we're on the same page :)

@igMike-V
Copy link
Collaborator

igMike-V commented Jun 5, 2023

Here is a good article by Kent C Dodds about using "data-" attributes as test targets https://kentcdodds.com/blog/making-your-ui-tests-resilient-to-change
TLDR: by implicitly creating a target e.g.: data-testid="someElemnentName" you can keep your tests from breaking when some other selector changes in the future.

@igMike-V igMike-V added the ⁉️ needs breakdown Issue is too big need to break into smaller tasks label Jun 6, 2023
@0916dhkim 0916dhkim removed the status in Core Team Project Jun 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
💻 frontend web-related ⁉️ needs breakdown Issue is too big need to break into smaller tasks
Projects
Status: No status
Development

No branches or pull requests

3 participants