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

Implement End-to-End Testing for Admin UI #2731

Open
4 tasks
JoblersTune opened this issue May 21, 2024 · 0 comments
Open
4 tasks

Implement End-to-End Testing for Admin UI #2731

JoblersTune opened this issue May 21, 2024 · 0 comments
Assignees
Labels
pkg: frontend Changes in the frontend package.

Comments

@JoblersTune
Copy link
Collaborator

Set up tests for the Admin UI using Playwright.

Playwright was chosen because:

  • Playwright offers native support for multiple browsers: Chromium, Firefox, and WebKit.
  • Playwright provides powerful features for network monitoring, such as intercepting network requests, responses.
  • Has built-in support for running tests in parallel.
  • Designed to handle flakiness in tests more effectively. It automatically waits for UI elements to be ready before performing actions, reducing the need for manual waits and sleep commands in test scripts. Making it a good choice for testing Rafiki Admin that relies on a lot of asynchronous communication.
  • It supports single-page applications (SPAs), shadow DOM, useful for testing React/Remix applications.
  • It seems to have good debugging tools including the ability to capture screenshots, generate a trace file, and logs.
  • DevOps, setting up Playwright in your workflow should be straightforward. Should integrate seamlessly with GitHub Actions.
  • Their docs seem useful

TODO:

  • Setup Playwright -> Integrate Playwright into the frontend package. Configure Playwright to work with GitHub Actions for CI/CD.
  • Backend and auth integration for test infrastructure.
  • Create the actual tests.
  • Documentation -> Outline Playwright setup. Provide guidelines for writing and maintaining tests.
@JoblersTune JoblersTune self-assigned this May 21, 2024
@sabineschaller sabineschaller added the pkg: frontend Changes in the frontend package. label Jul 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pkg: frontend Changes in the frontend package.
Projects
Status: Backlog
Development

No branches or pull requests

2 participants