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

Setup E2E tests covering user flow for SRE Analytics #117

Open
wants to merge 5 commits into
base: mvp_demo
Choose a base branch
from

Conversation

bhanvimenghani
Copy link
Contributor

This pr sets up e2e test in cypress and also does a list of test on the current ur

  1. Checks Kruize About page loads successfully
  2. Navigation from main page to SRE Analytics
  3. Testing ip and port setup
  4. Tests List Experiments api
  5. Tests List Recommendations api
  6. Mimics User clicks on UseCase selection page to get recommendations

To test the changes:

  1. Make sure UI is up and running
  2. run npx cypress open

@bhanvimenghani bhanvimenghani self-assigned this Nov 9, 2023
@bhanvimenghani bhanvimenghani linked an issue Nov 10, 2023 that may be closed by this pull request
@chandrams
Copy link
Contributor

@bhanvimenghani - You can use cypress run instead of cypress open to run in headless mode (without ui) and launch the browser using --browser option. Refer this doc - https://docs.cypress.io/guides/guides/command-line

It would be good to capture the test report and have a script to run the test and process the report and accordingly pass (exit 0) or fail (exit 1) the test. This will enable adding and end-to-end sanity test to github workflow.

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.

Setting up a test plan for UI
2 participants