percy / cli

The Percy CLI is used to interact with, and upload snapshots to, percy.io via the command line.
https://docs.percy.io/docs/cli-overview
67 stars 40 forks source link

✨ Analyze Error Logs and Suggest Fixes for Issues #1622

Closed this-is-shivamsingh closed 1 week ago

this-is-shivamsingh commented 3 weeks ago

What is this?

Cases covered:

Reference pic: Screenshot 2024-06-21 at 1 06 05 PM

For snapshot level: image [ Faillure Reason is not there on the API side yet, so it is coming empty string 😓 ]

Testing scenario:

  1. 1st and foremost priority is nothing should break on the existing flow. So an e2e
    • Web, automate, App Percy, ( using CLI commands like npx Percy snapshot, npx percy exec:start etc. )
  2. Start the Percy server and terminate it. It should show [ No snapshot command was called ].
  3. Port in use [ start a local server at 5338 ] and then start Percy server, it should hit Api for analysis.
  4. Trying setting up throw new Errors at different places
    • Inside discover.js, snapshot.js
    • In browser.js [ under launch() function ] and check if the Send for log analysis is getting called or not.
  5. You may encounter that for some errors, there will be no suggestions as they are not added in our rule engine. Most common errors as handled, and should show suggestions for.

Related PR: https://github.com/percy/percy-api/pull/3678