@@ -158,7 +158,7 @@ describe('EntityEditFormBuilder', () => {
158
158
} )
159
159
} as unknown as DataContext ;
160
160
161
- // Create instance builder'а
161
+ // Create instance of builder
162
162
builder = new EntityEditFormBuilder ( mockDataContext ) ;
163
163
} ) ;
164
164
@@ -168,7 +168,7 @@ describe('EntityEditFormBuilder', () => {
168
168
// Check that context property is set
169
169
expect ( ( builder as any ) . context ) . toBe ( mockDataContext ) ;
170
170
171
- // Check метод reset
171
+ // Check reset method
172
172
const formBeforeReset = ( builder as any ) . form ;
173
173
builder . reset ( ) ;
174
174
const formAfterReset = ( builder as any ) . form ;
@@ -180,7 +180,7 @@ describe('EntityEditFormBuilder', () => {
180
180
it ( 'should create form with correct fields' , ( ) => {
181
181
const form = builder . build ( ) ;
182
182
183
- // Check что форма создана
183
+ // Check that form is created
184
184
expect ( form ) . toBeInstanceOf ( EntityEditForm ) ;
185
185
186
186
// Get form HTML
@@ -248,7 +248,7 @@ describe('EntityEditFormBuilder', () => {
248
248
expect ( idInput ) . toBeDefined ( ) ;
249
249
expect ( idInput . getAttribute ( 'readonly' ) ) . toBeDefined ( ) ;
250
250
251
- // Check, что неизменяемые атрибуты имеют readonly
251
+ // Check that non-editable attributes have readonly
252
252
const attrNonEditable = createAttr ( 'Person.createdAt' , 'Created At' , DataType . DateTime , {
253
253
isEditable : false ,
254
254
showOnEdit : true
@@ -264,11 +264,11 @@ describe('EntityEditFormBuilder', () => {
264
264
expect ( createdAtInput . getAttribute ( 'readonly' ) ) . toBeDefined ( ) ;
265
265
} ) ;
266
266
267
- it ( 'should создавать текстовые поля правильного типа ' , ( ) => {
267
+ it ( 'should create text fields of correct type ' , ( ) => {
268
268
const form = builder . build ( ) ;
269
269
const formHtml = form . getHtml ( ) ;
270
270
271
- // Check текстовые поля
271
+ // Check text fields
272
272
const nameInput = formHtml . querySelector ( '[name="Person.name"]' ) as HTMLInputElement ;
273
273
expect ( nameInput . type ) . toBe ( 'text' ) ;
274
274
@@ -308,19 +308,19 @@ describe('EntityEditFormBuilder', () => {
308
308
expect ( options [ 1 ] . value ) . toBe ( 'Inactive' ) ;
309
309
} ) ;
310
310
311
- it ( 'should создавать специальные поля для дат и времени ' , ( ) => {
311
+ it ( 'should create special fields for dates and times ' , ( ) => {
312
312
const form = builder . build ( ) ;
313
313
const formHtml = form . getHtml ( ) ;
314
314
315
- // Check поля для дат
315
+ // Check date fields
316
316
const birthDateField = formHtml . querySelector ( '[name="Person.birthDate"]' ) . closest ( '.kfrm-fields, .kfrm-fields-ie' ) ;
317
317
expect ( birthDateField ) . toBeDefined ( ) ;
318
318
319
- // Check наличие кнопки с календарем
319
+ // Check presence of calendar button
320
320
const calendarButton = birthDateField . querySelector ( 'button' ) ;
321
321
expect ( calendarButton ) . toBeDefined ( ) ;
322
322
323
- // Check наличие иконки календаря
323
+ // Check presence of calendar icon
324
324
const calendarIcon = calendarButton . querySelector ( 'i.ed-calendar-icon' ) ;
325
325
expect ( calendarIcon ) . toBeDefined ( ) ;
326
326
} ) ;
@@ -343,7 +343,7 @@ describe('EntityEditFormBuilder', () => {
343
343
const form = builder . build ( ) ;
344
344
const formHtml = form . getHtml ( ) ;
345
345
346
- // Check наличие подсказки для поля с описанием
346
+ // Check presence of tooltip for field with description
347
347
const nameLabel = formHtml . querySelector ( `label[for="Person.name"]` ) ;
348
348
expect ( nameLabel ) . toBeDefined ( ) ;
349
349
0 commit comments