tachyon-cypress
TypeScript icon, indicating that this package has built-in type declarations

32.0.0 • Public • Published

Tachyon Cypress

This package contains various utilities that are useful for working with Cypress at Twitch.

Adding Commands

There are several commands that extend Cypress functionality. To use them:

// cypress/support/commands.ts
import { addTacyhonCypressCommands } from 'tachyon-cypress';

addTacyhonCypressCommands();

Command List

findSc

This is a custom child command which finds Sc elements ex. `ScScrollContainer`.
Takes in a string which is the name of the targeted styled-component, and otherwise works the same as `cy.find()`.

getSc

This is a custom parent command which gets Sc elements ex. `ScScrollContainer`.
Takes in a string which is the name of the targeted styled-component, and otherwise works the same as `cy.get()`.

Creating New Commands

To create a new command, add the command inside the addTacyhonCypressCommands() function using the Cypress.Commands.add functionality. Also then adds it type to global type augmentation so that TS users can see it and get proper intellisense.

Readme

Keywords

none

Package Sidebar

Install

npm i tachyon-cypress

Weekly Downloads

5

Version

32.0.0

License

UNLICENSED

Unpacked Size

5.08 kB

Total Files

7

Last publish

Collaborators

  • frgjdhskxjogu