cypress-craft
Version:
CypressCraft is an innovative extension built on top of Cypress (Cypress + Cucumber + POM)
17 lines (15 loc) • 605 B
TypeScript
// in cypress/support/index.ts
// load type definitions that come with Cypress module
/// <reference types="cypress" />
declare namespace Cypress {
interface Chainable<Subject> {
/**
* Custom command to log messages in a formatted way.
* @param title Title of the log message
* @param content Content to be logged
* @param type Type of the log ('assertion' or other)
*/
logManager(title: string, content: any, type: string): Chainable<Subject>;
logManagerE2E(title: string, content: any, type: string): Chainable<Subject>;
}
}