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: [DRAFT] test component by cypress with vite #3204

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft

Conversation

Sleaf
Copy link
Contributor

@Sleaf Sleaf commented May 19, 2023

No description provided.

@Sleaf Sleaf requested a review from SevenOutman May 19, 2023 04:41
@vercel
Copy link

vercel bot commented May 19, 2023

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

Name Status Preview Comments Updated (UTC)
rsuite-nextjs ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 19, 2023 4:43am
1 Ignored Deployment
Name Status Preview Comments Updated (UTC)
rsuite-v4 ⬜️ Ignored (Inspect) May 19, 2023 4:43am

@simonguo
Copy link
Member

simonguo commented Jun 7, 2023

Hi @Sleaf switching from Karma to Cypress is a significant project. What problems will this change solve, and what benefits will it bring?

@Sleaf
Copy link
Contributor Author

Sleaf commented Jun 8, 2023

  • Cypress use browser environment (it supports chrome, electron, edge, firefox so far) instead of JSDom , so you can test component style or mock user behavior easily.
  • Syntax of writing Cypress test case is linear and human reading friendly.
  • Cypress has a nice dev UI, and it can also run with headless mode.

It's not a well-thought-out plan, this PR is just an example for @SevenOutman to show Cypress look like now.

There are many details that may need to be discussed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants