From 107056fb3b477762b944d1499606c2b3fc328d54 Mon Sep 17 00:00:00 2001 From: Daniel Ciborowski Date: Mon, 5 Dec 2022 11:40:16 -0500 Subject: [PATCH] Extend CreateUI Test Coverage (#721) * Fix False Positive Textboxes-With-Length-Constrains-Regex should not fail when length constraint is in the middle. * Update createUiDefinition.json --- .../createUiDefinition.json | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/unit-tests/Textboxes-Are-Well-Formed/Pass/Textboxes-With-Length-Constrains-Regex/createUiDefinition.json b/unit-tests/Textboxes-Are-Well-Formed/Pass/Textboxes-With-Length-Constrains-Regex/createUiDefinition.json index f9ec8445..d7ef2af8 100644 --- a/unit-tests/Textboxes-Are-Well-Formed/Pass/Textboxes-With-Length-Constrains-Regex/createUiDefinition.json +++ b/unit-tests/Textboxes-Are-Well-Formed/Pass/Textboxes-With-Length-Constrains-Regex/createUiDefinition.json @@ -14,6 +14,16 @@ "regex": "^[0-9]{5,10}$", "validationMessage": "Textboxes with constraints.regex contains length limits." } + }, + { + "name": "TextBox2", + "type": "Microsoft.Common.TextBox", + "label": "Textboxes-With-Constrains-Validations-2", + "toolTip": "Textboxes with constraints.validations.", + "constraints": { + "regex": "^[A-Za-z][A-Za-z0-9-]{1,61}[A-Za-z0-9]$", + "validationMessage": "Textboxes with constraints.regex contains length limits." + } } ], "outputs": {