@@ -27,7 +27,7 @@ test.describe('Property validation - string', () => {
2727 test . describe ( 'String Regular Expression' , ( ) => {
2828 test ( 'should show validation error when value does not match regex (only letters allowed)' , async ( ) => {
2929 await test . step ( 'Enter invalid value' , async ( ) => {
30- await fillPropertyInput ( configurationPanel , 'stringRegEx property' , '123' ) ;
30+ await fillPropertyInput ( { configurationPanel, propertyLabel : 'stringRegEx property' , value : '123' } ) ;
3131 } ) ;
3232
3333 await test . step ( 'Assert validation error' , async ( ) => {
@@ -41,7 +41,7 @@ test.describe('Property validation - string', () => {
4141
4242 test ( 'should clear regex validation error when value matches (letters only)' , async ( ) => {
4343 await test . step ( 'Enter invalid value' , async ( ) => {
44- await fillPropertyInput ( configurationPanel , 'stringRegEx property' , '12' ) ;
44+ await fillPropertyInput ( { configurationPanel, propertyLabel : 'stringRegEx property' , value : '12' } ) ;
4545 } ) ;
4646
4747 await test . step ( 'Assert validation error' , async ( ) => {
@@ -53,7 +53,7 @@ test.describe('Property validation - string', () => {
5353 } ) ;
5454
5555 await test . step ( 'Enter valid value' , async ( ) => {
56- await fillPropertyInput ( configurationPanel , 'stringRegEx property' , 'ab' ) ;
56+ await fillPropertyInput ( { configurationPanel, propertyLabel : 'stringRegEx property' , value : 'ab' } ) ;
5757 } ) ;
5858
5959 await test . step ( 'Assert no validation error' , async ( ) => {
@@ -63,7 +63,7 @@ test.describe('Property validation - string', () => {
6363
6464 test ( 'should not show validation error when value matches regex' , async ( ) => {
6565 await test . step ( 'Enter valid value' , async ( ) => {
66- await fillPropertyInput ( configurationPanel , 'stringRegEx property' , 'abc' ) ;
66+ await fillPropertyInput ( { configurationPanel, propertyLabel : 'stringRegEx property' , value : 'abc' } ) ;
6767 } ) ;
6868
6969 await test . step ( 'Assert no validation error' , async ( ) => {
@@ -75,7 +75,7 @@ test.describe('Property validation - string', () => {
7575 test . describe ( 'String Min Length' , ( ) => {
7676 test ( 'should show validation error when string length is below minLength' , async ( ) => {
7777 await test . step ( 'Enter value below minLength' , async ( ) => {
78- await fillPropertyInput ( configurationPanel , 'stringMinLength property' , 'a' ) ;
78+ await fillPropertyInput ( { configurationPanel, propertyLabel : 'stringMinLength property' , value : 'a' } ) ;
7979 } ) ;
8080
8181 await test . step ( 'Assert validation error' , async ( ) => {
@@ -89,7 +89,11 @@ test.describe('Property validation - string', () => {
8989
9090 test ( 'should not show validation error when string length meets minLength' , async ( ) => {
9191 await test . step ( 'Enter value meeting minLength' , async ( ) => {
92- await fillPropertyInput ( configurationPanel , 'stringMinLength property' , 'abcde' ) ;
92+ await fillPropertyInput ( {
93+ configurationPanel,
94+ propertyLabel : 'stringMinLength property' ,
95+ value : 'abcde' ,
96+ } ) ;
9397 } ) ;
9498
9599 await test . step ( 'Assert no validation error' , async ( ) => {
@@ -101,7 +105,11 @@ test.describe('Property validation - string', () => {
101105 test . describe ( 'String Max Length' , ( ) => {
102106 test ( 'should show validation error when string length exceeds maxLength' , async ( ) => {
103107 await test . step ( 'Enter value exceeding maxLength' , async ( ) => {
104- await fillPropertyInput ( configurationPanel , 'stringMaxLength property' , 'abcdef' ) ;
108+ await fillPropertyInput ( {
109+ configurationPanel,
110+ propertyLabel : 'stringMaxLength property' ,
111+ value : 'abcdef' ,
112+ } ) ;
105113 } ) ;
106114
107115 await test . step ( 'Assert validation error' , async ( ) => {
@@ -115,7 +123,7 @@ test.describe('Property validation - string', () => {
115123
116124 test ( 'should not show validation error when string length is within maxLength' , async ( ) => {
117125 await test . step ( 'Enter value within maxLength' , async ( ) => {
118- await fillPropertyInput ( configurationPanel , 'stringMaxLength property' , 'abc' ) ;
126+ await fillPropertyInput ( { configurationPanel, propertyLabel : 'stringMaxLength property' , value : 'abc' } ) ;
119127 } ) ;
120128
121129 await test . step ( 'Assert no validation error' , async ( ) => {
@@ -140,7 +148,12 @@ test.describe('Property validation - numeric', () => {
140148 test . describe ( 'Integer Max Value' , ( ) => {
141149 test ( 'should show validation error when value exceeds maxValue' , async ( ) => {
142150 await test . step ( 'Enter value exceeding maxValue' , async ( ) => {
143- await fillPropertyInput ( configurationPanel , 'integerMaxValue property' , '11' ) ;
151+ await fillPropertyInput ( {
152+ configurationPanel,
153+ inputRole : 'spinbutton' ,
154+ propertyLabel : 'integerMaxValue property' ,
155+ value : '11' ,
156+ } ) ;
144157 } ) ;
145158
146159 await test . step ( 'Assert validation error' , async ( ) => {
@@ -154,7 +167,12 @@ test.describe('Property validation - numeric', () => {
154167
155168 test ( 'should not show validation error when value is within maxValue' , async ( ) => {
156169 await test . step ( 'Enter value within maxValue' , async ( ) => {
157- await fillPropertyInput ( configurationPanel , 'integerMaxValue property' , '10' ) ;
170+ await fillPropertyInput ( {
171+ configurationPanel,
172+ inputRole : 'spinbutton' ,
173+ propertyLabel : 'integerMaxValue property' ,
174+ value : '10' ,
175+ } ) ;
158176 } ) ;
159177
160178 await test . step ( 'Assert no validation error' , async ( ) => {
@@ -166,7 +184,12 @@ test.describe('Property validation - numeric', () => {
166184 test . describe ( 'Integer Min Value' , ( ) => {
167185 test ( 'should show validation error when value is below minValue' , async ( ) => {
168186 await test . step ( 'Enter value below minValue' , async ( ) => {
169- await fillPropertyInput ( configurationPanel , 'integerMinValue property' , '9' ) ;
187+ await fillPropertyInput ( {
188+ configurationPanel,
189+ inputRole : 'spinbutton' ,
190+ propertyLabel : 'integerMinValue property' ,
191+ value : '9' ,
192+ } ) ;
170193 } ) ;
171194
172195 await test . step ( 'Assert validation error' , async ( ) => {
@@ -180,7 +203,12 @@ test.describe('Property validation - numeric', () => {
180203
181204 test ( 'should not show validation error when value meets minValue' , async ( ) => {
182205 await test . step ( 'Enter value meeting minValue' , async ( ) => {
183- await fillPropertyInput ( configurationPanel , 'integerMinValue property' , '10' ) ;
206+ await fillPropertyInput ( {
207+ configurationPanel,
208+ inputRole : 'spinbutton' ,
209+ propertyLabel : 'integerMinValue property' ,
210+ value : '10' ,
211+ } ) ;
184212 } ) ;
185213
186214 await test . step ( 'Assert no validation error' , async ( ) => {
@@ -192,7 +220,7 @@ test.describe('Property validation - numeric', () => {
192220 test . describe ( 'Number Max Value' , ( ) => {
193221 test ( 'should show validation error when value exceeds maxValue' , async ( ) => {
194222 await test . step ( 'Enter value exceeding maxValue' , async ( ) => {
195- await fillPropertyInput ( configurationPanel , 'numberMaxValue property' , '6' ) ;
223+ await fillPropertyInput ( { configurationPanel, propertyLabel : 'numberMaxValue property' , value : '6' } ) ;
196224 } ) ;
197225
198226 await test . step ( 'Assert validation error' , async ( ) => {
@@ -206,7 +234,7 @@ test.describe('Property validation - numeric', () => {
206234
207235 test ( 'should not show validation error when value is within maxValue' , async ( ) => {
208236 await test . step ( 'Enter value within maxValue' , async ( ) => {
209- await fillPropertyInput ( configurationPanel , 'numberMaxValue property' , '5' ) ;
237+ await fillPropertyInput ( { configurationPanel, propertyLabel : 'numberMaxValue property' , value : '5' } ) ;
210238 } ) ;
211239
212240 await test . step ( 'Assert no validation error' , async ( ) => {
@@ -218,7 +246,7 @@ test.describe('Property validation - numeric', () => {
218246 test . describe ( 'Number Min Value' , ( ) => {
219247 test ( 'should show validation error when value is below minValue' , async ( ) => {
220248 await test . step ( 'Enter value below minValue' , async ( ) => {
221- await fillPropertyInput ( configurationPanel , 'numberMinValue property' , '4' ) ;
249+ await fillPropertyInput ( { configurationPanel, propertyLabel : 'numberMinValue property' , value : '4' } ) ;
222250 } ) ;
223251
224252 await test . step ( 'Assert validation error' , async ( ) => {
@@ -232,7 +260,7 @@ test.describe('Property validation - numeric', () => {
232260
233261 test ( 'should not show validation error when value meets minValue' , async ( ) => {
234262 await test . step ( 'Enter value meeting minValue' , async ( ) => {
235- await fillPropertyInput ( configurationPanel , 'numberMinValue property' , '5' ) ;
263+ await fillPropertyInput ( { configurationPanel, propertyLabel : 'numberMinValue property' , value : '5' } ) ;
236264 } ) ;
237265
238266 await test . step ( 'Assert no validation error' , async ( ) => {
@@ -244,7 +272,11 @@ test.describe('Property validation - numeric', () => {
244272 test . describe ( 'Number max decimal places' , ( ) => {
245273 test ( 'should show validation error when decimal places exceed maxNumberPrecision' , async ( ) => {
246274 await test . step ( 'Enter value with too many decimal places' , async ( ) => {
247- await fillPropertyInput ( configurationPanel , 'numberMaxNumPrecision property' , '1.123' ) ;
275+ await fillPropertyInput ( {
276+ configurationPanel,
277+ propertyLabel : 'numberMaxNumPrecision property' ,
278+ value : '1.123' ,
279+ } ) ;
248280 } ) ;
249281
250282 await test . step ( 'Assert validation error' , async ( ) => {
@@ -258,7 +290,11 @@ test.describe('Property validation - numeric', () => {
258290
259291 test ( 'should not show validation error when decimal places are within maxNumberPrecision' , async ( ) => {
260292 await test . step ( 'Enter value within max decimal places' , async ( ) => {
261- await fillPropertyInput ( configurationPanel , 'numberMaxNumPrecision property' , '1.12' ) ;
293+ await fillPropertyInput ( {
294+ configurationPanel,
295+ propertyLabel : 'numberMaxNumPrecision property' ,
296+ value : '1.12' ,
297+ } ) ;
262298 } ) ;
263299
264300 await test . step ( 'Assert no validation error' , async ( ) => {
@@ -270,7 +306,11 @@ test.describe('Property validation - numeric', () => {
270306 test . describe ( 'Number min decimal places' , ( ) => {
271307 test ( 'should show validation error when decimal places are below minNumberPrecision' , async ( ) => {
272308 await test . step ( 'Enter value with too few decimal places' , async ( ) => {
273- await fillPropertyInput ( configurationPanel , 'numberMinNumPrecision property' , '1.1' ) ;
309+ await fillPropertyInput ( {
310+ configurationPanel,
311+ propertyLabel : 'numberMinNumPrecision property' ,
312+ value : '1.1' ,
313+ } ) ;
274314 } ) ;
275315
276316 await test . step ( 'Assert validation error' , async ( ) => {
@@ -284,7 +324,11 @@ test.describe('Property validation - numeric', () => {
284324
285325 test ( 'should not show validation error when decimal places meet minNumberPrecision' , async ( ) => {
286326 await test . step ( 'Enter value meeting min decimal places' , async ( ) => {
287- await fillPropertyInput ( configurationPanel , 'numberMinNumPrecision property' , '1.12' ) ;
327+ await fillPropertyInput ( {
328+ configurationPanel,
329+ propertyLabel : 'numberMinNumPrecision property' ,
330+ value : '1.12' ,
331+ } ) ;
288332 } ) ;
289333
290334 await test . step ( 'Assert no validation error' , async ( ) => {
@@ -296,7 +340,11 @@ test.describe('Property validation - numeric', () => {
296340 test . describe ( 'Number precision' , ( ) => {
297341 test ( 'should show validation error when decimal places exceed numberPrecision' , async ( ) => {
298342 await test . step ( 'Enter value with too many decimal places' , async ( ) => {
299- await fillPropertyInput ( configurationPanel , 'numberPrecision property' , '1.1234' ) ;
343+ await fillPropertyInput ( {
344+ configurationPanel,
345+ propertyLabel : 'numberPrecision property' ,
346+ value : '1.1234' ,
347+ } ) ;
300348 } ) ;
301349
302350 await test . step ( 'Assert validation error' , async ( ) => {
@@ -310,7 +358,11 @@ test.describe('Property validation - numeric', () => {
310358
311359 test ( 'should not show validation error when decimal places are within numberPrecision' , async ( ) => {
312360 await test . step ( 'Enter value within number precision' , async ( ) => {
313- await fillPropertyInput ( configurationPanel , 'numberPrecision property' , '1.123' ) ;
361+ await fillPropertyInput ( {
362+ configurationPanel,
363+ propertyLabel : 'numberPrecision property' ,
364+ value : '1.123' ,
365+ } ) ;
314366 } ) ;
315367
316368 await test . step ( 'Assert no validation error' , async ( ) => {
0 commit comments