File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed
Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change 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')
5255Exposed 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
6270It 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
6876This 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 -->
You can’t perform that action at this time.
0 commit comments