Skip to content

Commit

Permalink
Describe typing formats for specific inputs (#1998)
Browse files Browse the repository at this point in the history
  • Loading branch information
VasilyStrelyaev authored and helen-dikareva committed Dec 28, 2017
1 parent 72e3c05 commit 778f06d
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions docs/articles/documentation/test-api/actions/type-text.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,3 +38,19 @@ test('Type and Replace', async t => {
.expect(nameInput.value).eql('Parker');
});
```

## Typing Into DateTime, Color and Range Inputs

There are certain types of HTML5 inputs, like `DateTime`, `Color` or `Range`, that require entering values in a specific format.

The following table lists value formats expected by these inputs.

Input type | Pattern | Example
---------- | ------------------ | ------------
Date | `yyyy-mm-dd` | `'2017-12-23'`
Week | `yyyy-Www` | `'2017-W03'`
Month | `yyyy-mm` | `'2017-08'`
DateTime | `yyyy-mm-ddThh:mm` | `'2017-11-03T05:00'`
Time | `hh:mm` | `'15:30'`
Color | `#rrggbb` | `'#003000'`
Range | `n` | `'45'`

0 comments on commit 778f06d

Please sign in to comment.