Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
"get",
(originalFn: typeof cy.get, selector: string, options?: CommandOptions) => {
const log = options?.log || true;
const logMessage = options?.logMessage || selector;
if (log) {
Cypress.log({
displayName: "GET",
message: [logMessage],
});
}
return originalFn(selector, { log: false });
}
);
addMatchImageSnapshotCommand("matchImageSnapshot", {
capture: "fullPage",
failureThreshold: 0.03,
failureThresholdType: "percent",
});
declare global {
namespace Cypress {
interface Chainable {
stopNode: (nodeId: number) => Chainable;
decommissionNode: (nodeId: number, wait?: boolean) => Chainable;
startCluster: () => Chainable;
teardown: () => Chainable;
matchImageSnapshot: () => Chainable;
}
interface Loggable {