find-cat

Find Cat

This package adds a cypress custom command, so you could get uncertain element for some unknown fun.

Installation

npm install find-cat@latest

Usage

Add custom cmmand

// Add following code in cypress/support/e2e.js file
import findcat from 'find-cat'

Create cat jump funcion

// Original function is as follows:
const catJumps = () => {
    cy.log('Cat is alive, and jumps for no reason')
    console.log('Cat is alive, and jumps for no reason')
    cy.exec("echo 'Cat is alive, and jumps for no reason'")
}

Add it in general cy file

cy.get('.header').findcat('button', catJumps)