-
Notifications
You must be signed in to change notification settings - Fork 3
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
Support E2E tests in Neuron's repo by github action #132
Comments
Cypress and Playwright have some commonalities and differences in the e2e test scenario: common ground:
difference:
In general, Cypress is more suitable for use in single-browser e2e test scenarios, and can provide more intuitive and easy-to-understand test reports and a visual test runner. Playwright is more suitable for use in e2e test scenarios of multiple browsers and pages, and can provide more flexible test script writing and execution. |
Only chrome/chromium is used in Neuron because it's the built-in webview of electron so the difference in browsers can be ignored. Ref:
|
1.In consideration of a great advantage between Cypress and PlayWright is PlayWright can test multiple browsers in parallel,but Cypress can not.If the difference in browsers can be ignored,Cypress may be the better choice. |
Let's make a decision. From the consideration above and the that we only care about chromium in practice, cypress should be a better choice. |
Now we can schedule how and when to move e2e tests from https://github.com/nervosnetwork/neuron-automation to https://github.com/nervosnetwork/neuron/ |
Later, Neuron's E2E will be developed by using cypress. |
After reading the project, I think we need to consider the following points when writing a new project with cypress:
|
My suggestion is that we can split the task into several parts similar to test plan firstly ,then assign in QA team. |
I prefer to add
The difference is that |
This feature requires introducing E2E test code into Neuron's Repo and synchronizing it with Github Action runs.
Neuron currently has an automated test service at https://github.com/nervosnetwork/neuron-automation, but it is a timed service that is not triggered by every commit. It is also not able to keep up with the updates to https://github.com/nervosnetwork/neuron, which puts a burden on maintenance.
If we can maintain E2E tests in Neuron's Repo, we can improve efficiency and reduce maintenance costs.
Following are the test frameworks suggested in community:
The text was updated successfully, but these errors were encountered: