Cypress
Get started
Set a Preview URL
Example Configuration
const { defineConfig } = require("cypress");
const { registerArgosTask } = require("@argos-ci/cypress/task");
module.exports = defineConfig({
e2e: {
async setupNodeEvents(on, config) {
registerArgosTask(on, config, {
uploadToArgos: !!process.env.CI,
previewUrl: {
baseUrl: "https://my-site.com", // Use a dynamic value here for different environments if needed.
},
});
},
},
});Setup individual Cypress events
API Overview
cy.argosScreenshot([name][, options])
Helper Attributes for Visual Testing
registerArgosTask(on, config[, options])
argosAfterScreenshot(config, details[, options])
argosAfterRun(config, results[, options])
Troubleshooting
Error while importing @argos-ci/cypress/task in cypress.config.ts
@argos-ci/cypress/task in cypress.config.tsViewports option not working
Additional Resources
Last updated
Was this helpful?