JSPM

@ez-library/cypress

1.0.1
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 1
  • Score
    100M100P100Q29513F
  • License MIT

A JavaScript library to automation web app and rest api using cypress. Includes many helper function.

Package Exports

  • @ez-library/cypress
  • @ez-library/cypress/index.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@ez-library/cypress) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

@ez-library/cypress

@ez-library/cypress is a javascript library for automation with cypress

Installation

Use the package manager NPM to install

npm install @ez-library/cypress

Usage

import ez from '@ez-library/cypress'

describe("Testing made easy with @ez-library/cypress", function(){
  it("Testing with  @ez-library/cypress", function(){
    ez.clickById("locator");
    ez.clickByCss("locator");
    ez.typeById("locator", "some text");
    ez.typeByCss("locator", "some text");
    ez.isDisplayed("locator").then(function(displayed){
       if(isDisplayed){
          ez.clickById("locator").click();
       }
    })
  });
});

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.