Socket
Socket
Sign inDemoInstall

babel-typescript-sample

Package Overview
Dependencies
1
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    babel-typescript-sample

# What is this?


Version published
Weekly downloads
0
Maintainers
1
Created
Weekly downloads
 

Readme

Source

react-gears-cypress

What is this?

This is a collection of helpers for testing react-gears browser UIs with Cypress.

How do I use it?

First, install the commands in support/commands.js

import {Commands} from 'react-gears-cypress'
const gears = new Commands(cy)

Cypress.Commands.overwrite('select', gears.select)

Then, in each test file where you want to interact with gears:

import {Finders} from 'react-gears-cypress'
const gears = new Finders(cy)

gears.blockPanel('Personal Information').within(() => {
  gears.datapair('First Name').contains('Alice')
  gears.input('Last Name').clear().type('Liddel')

  # Finds either an HTML <select> or a gears component.
  # Must redefine the `select` command to interact with gears components.
  gears.select('Favorite Color').select('red')
})

Building the repo

npm run build

Type-checking the repo

npm run type-check

And to run in --watch mode:

npm run type-check:watch

FAQs

Last updated on 21 Mar 2019

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc