declare global { namespace Cypress { interface Chainer { /** * `have.css` matcher compares the computedColor, which is a rgb() value. * This custom matcher instead accept any valid CSS color format. * * @example * cy.get('foo').should('have.color', 'white') * cy.get('foo').should('have.color', '#fff') * cy.get('foo').should('have.color', 'var(--q-primary)') */ (chainer: 'have.color', type: string): Chainable; /** * `have.css` matcher compares the computedColor, which is a rgb() value. * This custom matcher instead accept any valid CSS color format. * * @example * cy.get('foo').should('have.backgroundColor', 'black') * cy.get('foo').should('have.backgroundColor', '#000') * cy.get('foo').should('have.backgroundColor', 'var(--q-dark)') */ (chainer: 'have.backgroundColor', type: string): Chainable; } } } export declare function registerColorAssertions(): void;