UNPKG

cypress-enterprise-commands

Version:

Reusable Cypress custom commands for enterprise web applications

20 lines (19 loc) 721 B
type SoftAssertionResult = { description: string; passed: boolean; error?: Error; expected?: any; actual?: any; subject?: any; }; declare namespace Cypress { interface Chainable<Subject> { softAssertValue(actual: any, expected: any, message?: any): Chainable<any>; softAssertElement(element: JQuery<HTMLElement>, assertion: string | ((element: JQuery<HTMLElement>) => void), expected?: any, description?: string): Chainable<void>; softAssert(assertionFn: (subject: any) => void, description: string, options?: { expected?: any; subjectAlias?: string; }): Chainable<void>; } } declare let softAssertionResults: SoftAssertionResult[];