find-cat

1.1.4 • Public • Published

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)

Readme

Keywords

none

Package Sidebar

Install

npm i find-cat

Weekly Downloads

0

Version

1.1.4

License

Apache License 2.0

Unpacked Size

13.7 kB

Total Files

5

Last publish

Collaborators

  • eleve