Closed kobenguyent closed 1 month ago
Hi @kobenguyent, the upload() function in Argos isn’t meant to return the build’s status. It simply uploads your screenshot to the Argos app and provides a link to view the build on the app.
@jsfez thanks for the reply! I'm coming from applitools world, so maybe argos works differently based on knowledge. With applitools, I could get the visual verification status, hence, I could mark the test either passed or failed. On the other hand, with Argos, I'm not sure how to achieve that. May you share if that's possible?
Here is my code that I implemented for Applitools. https://github.com/kobenguyent/codeceptjs-applitoolshelper/blob/master/src/index.ts
@kobenguyent Argos processes the diff asynchronously, so you can't get the build result synchronously.
To achieve the same result, you have to pull Argos until the build is done. It's not documented but our API do have an endpoint to get the builds associated to a commit so it's definitely possible.
But it's not in the philosophy of Argos. Argos takes care of its own "commit status" or "check". So when you approve screenshots it's automatically updated.
I am curious of understanding your complete workflow in order to make it work for you! Could you book a call with me? https://cal.com/gregberge
@gregberge thanks for the brief update! I managed to get the api collections, I'll try to play with it to learn more about it at first.
Description
I'm totally new to this, so I'm just curios if we could get the response after calling upload function on local machine.
My function
When running test locally, I just see this
When running on Github
Test repo: https://github.com/kobenguyent/codeceptjs-ArgosCIHelper