-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Research Cypress Alternatives for testing #8129
Comments
This issue has been labeled with 'design-required'. Note that prior to commencing on implementation, a design specification needs to be created and reviewed for approval. See Creating a Functional Specification to create a design spec.
|
@Abhishek-kumar09 Well I am only aware about playwright, cypress (which we are already using) and puppeteer (as of now). Let's start with playwright POC first - specifically showcasing the tests for graphql subscriptions. Then we can move with others. |
Can we define a basic set of test scenarios we'd like to test? That way we can produce similar test suites from each alternative (including current framework - cypress) and evaluate accordingly. |
@Abhishek-kumar09 @leecalcote @vaibhav135 I did found a library called |
Its an OSS tool by Zendesk: https://github.com/zendesk/laika |
Thanks for the research items @MarioArriaga92, looking at it. |
@MarioArriaga92 Thanks for the useful links. Btw I would like to mention that although I myself don't have much experience with cypress. But it seems that It has some problem when it comes to running in ci/cd pipeline. Btw @leecalcote and @Abhishek-kumar09 I would like to know about your experience with cypress. |
@vaibhav135 good points, on the issue you mention ("Error: ESOCKETTIMEDOUT" during cy.visit command) is something very generic that can happen in different circumstances where the application under test built with an apparent "success" but is somehow unable to serve the page like in this case where an angular app was served with the "watch" flag causing the app to be re-built during test initialization and page visit timed out. |
@vaibhav135 #7740 is a great example, pay close attention to this comment where a common solution to most issues that result in an ESOCKETTIMEDOUT error (based on cypress-io/cypress issue 7062 reply by jennifer-shehane, |
Why does this kind of problem happen mostly in CI environments? There could be a bug in cypress itself with certain setups and conditions but based on experience working with Cypress and Github Workflows in Meshery its mostly due to any of the following circumstances:
Is a 30 second load time acceptable? I'd say no but its not a measurement in fair conditions as CI machines usually have low amount of resources, have commodity hardware and/or could have shared resources across multiple runs/agent processes) so a separate setup and/or tool(s) can/should be used to evaluate performance. There are combinations like Cypress + Lighthouse or Cypress + browser's native Performance API to benchmark apps from an end-to-end / user perspective but that'd be a separate topic hehe. |
Checking in... it has been awhile since we've heard from you on this issue. Are you still working on it? Please let us know and please don't hesitate to contact a MeshMate or any other community member for assistance.
|
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
This issue is being automatically closed due to inactivity. However, you may choose to reopen this issue. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
This issue is being automatically closed due to inactivity. However, you may choose to reopen this issue. |
Current Behavior
We test our UI e2e with cypress today, but there are few jerks with the subscriptions and graphQL, also we use the same framework in Meshery-extensions as well.
Your suggestions to new framework would be helpful.
Frameworks to research:
Expected Behavior
Screenshots/Logs
Environment
Contributor Guides and Handbook
The text was updated successfully, but these errors were encountered: