# @hon2a/cypress-antd

> Helpers for interacting with Ant Design components in Cypress tests.

Latest version **0.4.11** (published 2022-05-31) · MIT license · 0 weekly downloads

## Install

```sh
npm install @hon2a/cypress-antd
pnpm add @hon2a/cypress-antd
yarn add @hon2a/cypress-antd
bun add @hon2a/cypress-antd
```

## Health

**Score 20/100 (F)** — status: abandoned.

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.4.11 |
| Published | 2022-05-31 |
| First published | 2021-07-02 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Dependencies | 3 |
| Unpacked size | 227.5 KB |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 6 |
| Author | Jan Konopásek |
| Maintainers | hon2a |

## Links

- npm: https://www.npmjs.com/package/@hon2a/cypress-antd
- Repository: https://github.com/hon2a/cypress-antd
- Homepage: https://github.com/hon2a/cypress-antd#readme
- Issues: https://github.com/hon2a/cypress-antd/issues
- npm.io page: https://npm.io/package/@hon2a/cypress-antd

## Dependencies (3)

- [lodash](https://npm.io/package/lodash.md) ^4.17.21
- [@babel/runtime](https://npm.io/package/@babel/runtime.md) 7.16.3
- [@hon2a/cypress-without](https://npm.io/package/@hon2a/cypress-without.md) 1.1.8

## Recent versions

- 0.4.11 (latest) — 2022-05-31
- 0.4.10 — 2022-03-24
- 0.4.9 — 2022-03-07
- 0.4.8 — 2022-03-07
- 0.4.7 — 2022-02-23
- 0.4.6 — 2022-02-23
- 0.4.5 — 2022-02-23
- 0.4.4 — 2022-01-27
- 0.4.3 — 2022-01-06
- 0.4.2 — 2022-01-06
- 0.4.1 — 2021-12-14
- 0.4.0 — 2021-12-13
- 0.3.14 — 2021-12-10
- 0.3.13 — 2021-12-10
- 0.3.10 — 2021-07-28
- … 1 more at https://npm.io/package/@hon2a/cypress-antd/versions

## README

# cypress-antd

Helpers for interacting with Ant Design components in Cypress tests.


## Use

Import the provided helpers directly:

```javascript
import { getButton, shouldHaveTooltip } from '@hon2a/cypress-antd'

// note that "child command" (Cypress terminology) helpers are curried to be used inside `then`
getButton('Cool Button').then(shouldHaveTooltip('The coolness of this button knows no bounds.'))
```

or register them automatically with Cypress as custom commands:

```javascript
import '@hon2a/cypress-antd/lib/register'

// note that "child commands" are registered properly to automatically consume the yielded subject
cy.getButton('Uncool Button').shouldHaveTooltip('This button is so very sad.')
```

_Documentation of individual commands is TBD. For now, the helper names and contracts should be self-explanatory._ 

## Development

### Install

Install dependencies using:

```sh
npm install
```

### Develop

After you modify sources, run the following (or set up your IDE to do it for you):

- format the code using `npm run format`
- lint it using `npm run lint`
- test it using `npm test`

and fix the errors, if there are any.

### Publish

Publishing is done in two steps:

1. Create a new version tag and push it to the repository:
    ```sh
    npm version <patch|minor|major>
    git push --follow-tags
    ```
1. Build and publish the new version as a npm package:
    ```sh
    npm publish --access public
    ```

---
_Source: https://npm.io/package/@hon2a/cypress-antd · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
