The Diffy API offers visual regression testing, allowing you to compare visuals of web pages over time or across different environments. With Pipedream's serverless architecture, you can integrate Diffy into various workflows to automate visual testing, get notified of changes, or even trigger deployments in a CI/CD pipeline when a visual test passes.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
diffy: {
type: "app",
app: "diffy",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://app.diffy.website/api/projects`,
headers: {
Authorization: `Bearer ${this.diffy.$auth.access_token}`,
},
})
},
})
Scheduled Visual Regression Tests: Set up a Pipedream workflow that triggers on a schedule to run visual comparisons of your production site against a staging environment using the Diffy API. If differences exceed a certain threshold, it can alert your team through Slack or email for review.
Monitor Competitor Websites: Create a Pipedream workflow that periodically checks your competitors' websites using the Diffy API. Store the snapshots in a data store, and if significant visual changes are detected, notify your marketing team so they can analyze the competitor's strategy.
Integration with Deployment Pipelines: Design a workflow in Pipedream to act as a gatekeeper in your deployment pipeline. After a deployment to a test environment, trigger a visual test using Diffy API. If the test passes, automatically promote the build to the next stage in your pipeline; if not, halt the deployment and notify your development team.
Emit new event when a new diff is created in Diffy. See the documentation
Emit new event when a new screenshot is created in Diffy. See the documentation
Diffy uses OAuth authentication. When you connect your Diffy account, Pipedream will open a popup window where you can sign into Diffy and grant Pipedream permission to connect to your account. Pipedream securely stores and automatically refreshes the OAuth tokens so you can easily authenticate any Diffy API.
Pipedream requests the following authorization scopes when you connect your account:
POST
https://app.diffy.website/api/auth/key
content-type: application/json
accept: application/json
key={{custom_fields.api_key}}