Skip to content

Commit 3a24820

Browse files
fix(/): fixing tests
1 parent 098f58a commit 3a24820

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

README.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
# cypress-fill-command
2+
23
<!-- ALL-CONTRIBUTORS-BADGE:START - Do not remove or modify this section -->
4+
35
[![All Contributors](https://img.shields.io/badge/all_contributors-1-orange.svg?style=flat-square)](#contributors-)
6+
47
<!-- ALL-CONTRIBUTORS-BADGE:END -->
58

69
[![GitHub license](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/danielferrarir/cypress-fill-command/blob/master/LICENSE) [![Travis Status](https://api.travis-ci.com/DanielFerrariR/cypress-fill-command.svg?branch=master)](https://travis-ci.com/github/DanielFerrariR/cypress-fill-command) [![npm version](https://img.shields.io/npm/v/cypress-fill-command.svg?style=flat&color=important)](https://www.npmjs.com/package/cypress-fill-command) [![All Contributors](https://img.shields.io/badge/all_contributors-0-yellow.svg)](#contributors)
@@ -52,11 +55,16 @@ cy.get('#the-element-id').fill('Some text')
5255
Exposed command in a nutshell:
5356

5457
```javascript
55-
cySubject.fill(text)
58+
cySubject.fill(text, options)
5659
```
5760

5861
- {String} `text` – The text to be filled into an input
5962

63+
Options contains following properties:
64+
65+
- {boolean} `overwrite` - To overwrite the input value. Defaults to `true`
66+
- {boolean} `prepend` - To insert before or after the current input value when `overwrite` is `false`
67+
6068
## It isn't working!
6169

6270
It has been used on a React project with inputs controlled by React state.
@@ -66,6 +74,7 @@ I cannot guarantee it will work in any custom input, but we can try to improve i
6674
## Contributors
6775

6876
This project follows the [all-contributors](https://github.com/all-contributors/all-contributors) specification. Contributions of any kind welcome!
77+
6978
<!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section -->
7079
<!-- prettier-ignore-start -->
7180
<!-- markdownlint-disable -->

0 commit comments

Comments
 (0)