Skip to content

Commit

Permalink
Upgrade Cypress along with the agent (#96)
Browse files Browse the repository at this point in the history
* Upgrade Cypress along with the agent

* Specify the agent version which was released today
  • Loading branch information
paazmaya committed Aug 6, 2023
1 parent 0063d53 commit 87af770
Show file tree
Hide file tree
Showing 8 changed files with 2,065 additions and 164 deletions.
33 changes: 33 additions & 0 deletions agent-cypress/cypress.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
import { defineConfig } from "cypress";
import { addVisualRegressionTrackerPlugin } from "@visual-regression-tracker/agent-cypress";

/**
* @see https://docs.cypress.io/guides/references/configuration
*/
export default defineConfig({
e2e: {
baseUrl: "https://www.google.com/",
specPattern: "cypress/integration/*.spec.js",

setupNodeEvents(on, config) {
// `on` is used to hook into various events Cypress emits
// `config` is the resolved Cypress config
addVisualRegressionTrackerPlugin(on, config);
},
},
video: false,
screenshotOnRunFailure: false,
retries: {
runMode: 1,
openMode: 0,
},
env: {
visualRegressionTracker: {
apiUrl: "http://localhost:4200",
apiKey: "DEFAULTUSERAPIKEYTOBECHANGED",
project: "Default project",
branchName: "master",
enableSoftAssert: true,
},
},
});
9 changes: 0 additions & 9 deletions agent-cypress/cypress.json

This file was deleted.

28 changes: 0 additions & 28 deletions agent-cypress/cypress/plugins/index.js

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,7 @@
// -- This will overwrite an existing command --
// Cypress.Commands.overwrite("visit", (originalFn, url, options) => { ... })
import {
addVrtStartCommand,
addVrtTrackCommand,
addVrtStopCommand,
addVrtTrackBufferCommand,
addVrtTrackBase64Command,
} from "@visual-regression-tracker/agent-cypress/dist/commands";
addVrtCommands,
} from "@visual-regression-tracker/agent-cypress";

addVrtStartCommand();
addVrtTrackCommand();
addVrtStopCommand();
addVrtTrackBufferCommand();
addVrtTrackBase64Command();
addVrtCommands();
20 changes: 0 additions & 20 deletions agent-cypress/cypress/support/index.js

This file was deleted.

Loading

0 comments on commit 87af770

Please sign in to comment.