From 778f06dd2603478c05b069b39e04328f2e0a8e84 Mon Sep 17 00:00:00 2001 From: Vasily Strelyaev Date: Thu, 28 Dec 2017 17:28:26 +0300 Subject: [PATCH] Describe typing formats for specific inputs (#1998) --- .../documentation/test-api/actions/type-text.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/docs/articles/documentation/test-api/actions/type-text.md b/docs/articles/documentation/test-api/actions/type-text.md index bddb30803d6..5a508a1a70b 100644 --- a/docs/articles/documentation/test-api/actions/type-text.md +++ b/docs/articles/documentation/test-api/actions/type-text.md @@ -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'` \ No newline at end of file