* configure max chars for textbox * min 1 * Adds server-side check for text box min and max character validation. * Applied suggestion from code review. * Bumped version of test helper * Fixed test that was creating a text string data type with too large a maximum characters setting. --------- Co-authored-by: Andy Butland <abutland73@gmail.com> Co-authored-by: Nhu Dinh <hnd@umbraco.dk>
This commit is contained in:
@@ -8,7 +8,7 @@
|
||||
"hasInstallScript": true,
|
||||
"dependencies": {
|
||||
"@umbraco/json-models-builders": "^2.0.42",
|
||||
"@umbraco/playwright-testhelpers": "^17.0.8",
|
||||
"@umbraco/playwright-testhelpers": "^17.0.9",
|
||||
"camelize": "^1.0.0",
|
||||
"dotenv": "^16.3.1",
|
||||
"node-fetch": "^2.6.7"
|
||||
@@ -67,9 +67,9 @@
|
||||
}
|
||||
},
|
||||
"node_modules/@umbraco/playwright-testhelpers": {
|
||||
"version": "17.0.8",
|
||||
"resolved": "https://registry.npmjs.org/@umbraco/playwright-testhelpers/-/playwright-testhelpers-17.0.8.tgz",
|
||||
"integrity": "sha512-LUVBdsweiS0WpE1F9YTQejmSxdtgEvbcmLHX57e2S2AbNkdVuR8cJ0rYd9TqSKtNU8ckwnk6YRtVikegU0D64w==",
|
||||
"version": "17.0.9",
|
||||
"resolved": "https://registry.npmjs.org/@umbraco/playwright-testhelpers/-/playwright-testhelpers-17.0.9.tgz",
|
||||
"integrity": "sha512-8y2/Rjskhf5gcF+ebJfxUCCkHTcGmKQqtVMLg9hRKVjhI+3bs642+GJL0tK4MPvoSK64JhfiKmo+IhI5zrtokg==",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"@umbraco/json-models-builders": "2.0.42",
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
},
|
||||
"dependencies": {
|
||||
"@umbraco/json-models-builders": "^2.0.42",
|
||||
"@umbraco/playwright-testhelpers": "^17.0.8",
|
||||
"@umbraco/playwright-testhelpers": "^17.0.9",
|
||||
"camelize": "^1.0.0",
|
||||
"dotenv": "^16.3.1",
|
||||
"node-fetch": "^2.6.7"
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import {test} from '@umbraco/playwright-testhelpers';
|
||||
import {test} from '@umbraco/playwright-testhelpers';
|
||||
import {expect} from "@playwright/test";
|
||||
|
||||
const dataTypeName = 'TestDataType';
|
||||
@@ -68,7 +68,7 @@ test('can change property editor in a data type', {tag: '@smoke'}, async ({umbra
|
||||
const updatedEditorName = 'Text Area';
|
||||
const updatedEditorAlias = 'Umbraco.TextArea';
|
||||
const updatedEditorUiAlias = 'Umb.PropertyEditorUi.TextArea';
|
||||
const maxChars = 999;
|
||||
const maxChars = 500;
|
||||
|
||||
await umbracoApi.dataType.createTextstringDataType(dataTypeName, maxChars);
|
||||
expect(await umbracoApi.dataType.doesNameExist(dataTypeName)).toBeTruthy();
|
||||
|
||||
Reference in New Issue
Block a user