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

[FEATURE]: E2E Tests Vitality frontend and frontend BO applications #6

Open
helabenkhalfallah opened this issue Oct 14, 2024 · 1 comment
Assignees
Labels
Milestone

Comments

@helabenkhalfallah
Copy link
Member

helabenkhalfallah commented Oct 14, 2024

✨ Description

Implement comprehensive end-to-end (E2E) tests for the Vitality frontend and frontend BO applications.

πŸš€ Motivation

E2E tests simulate real user interactions with the frontend, providing valuable feedback on the application's functionality, user experience, and overall stability. These tests help identify issues that might not be caught by unit or integration tests, such as UI inconsistencies, integration problems, and browser compatibility issues.

πŸ“ Proposed Solution

  • Framework Choice: Cypress vs Playwright
  • Configuration
  • Identify and prioritize critical user flows to test
  • Tests Implementation
  • Update WIKI documentation if needed

πŸ”— Relevant Links (if any)

@helabenkhalfallah helabenkhalfallah added the enhancement New feature or request label Oct 14, 2024
@helabenkhalfallah helabenkhalfallah added this to the Vitality 2.0 milestone Oct 14, 2024
@helabenkhalfallah helabenkhalfallah added feature and removed enhancement New feature or request labels Oct 14, 2024
@maelaubert56
Copy link
Member

πŸ†š Comparison between Cypress and Playwright

Criteria Cypress Playwright
Installation Very easy, simple configuration A bit more complex
Performance Fast but limited to one browser per test Very fast, cross-browser testing
Debugging Excellent with time-travel, videos, and screenshots Good, but with fewer debugging tools
Browser Support Primarily Chrome, Electron (basic support) Chrome, Firefox, Safari, and mobile browsers
Scenario Complexity Less suited for multi-page or multi-domain scenarios Highly suited for complex scenarios
Parallel Testing Limited parallelization, requires external tools Native parallelization, better performance
Ecosystem More mature with lots of plugins Younger, but rapidly growing
  • Cypress seems to be a great choice for a simple and powerful solution for testing in a single browser environment. Playwright is better to test across multiple browser or execute more complex scenarios (multiple tabs and domains).
  • Cypress only support Chrome while Playwright support many different browsers and mobile browsers

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

When branches are created from issues, their pull requests are automatically linked.

2 participants