Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade Cypress along with the agent #96

Merged
merged 2 commits into from
Aug 6, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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