@@ -3333,9 +3333,8 @@ test("Localication and survey.pages property, Bug#6687", () => {
3333
3333
}
3334
3334
} ;
3335
3335
editorLocalization . locales [ "de" ] = deutschStrings ;
3336
- const creator = new CreatorTester ( ) ;
3336
+ const creator = new CreatorTester ( undefined , undefined , false ) ;
3337
3337
creator . locale = "de" ;
3338
- creator . JSON = { } ;
3339
3338
const propertyGrid = new PropertyGridModelTester ( creator . survey ) ;
3340
3339
const pagesQuestion = < QuestionMatrixDynamicModel > (
3341
3340
propertyGrid . survey . getQuestionByName ( "pages" )
@@ -3351,22 +3350,6 @@ test("Localication and survey.pages property, Bug#6687", () => {
3351
3350
expect ( creator . survey . pages . length ) . toBe ( 1 ) ;
3352
3351
expect ( creator . survey . pages [ 0 ] . name ) . toBe ( "Seite1" ) ;
3353
3352
} ) ;
3354
- test ( "panellayoutcolumns doesn't have adding button" , ( ) => {
3355
- const creator = new CreatorTester ( ) ;
3356
- creator . JSON = {
3357
- gridLayoutEnabled : true ,
3358
- elements : [ { type : "text" , name : "q1" } ]
3359
- } ;
3360
- const propertyGrid = new PropertyGridModelTester ( creator . survey . pages [ 0 ] ) ;
3361
- const gridColumnsQuestion = < QuestionMatrixDynamicModel > ( propertyGrid . survey . getQuestionByName ( "gridLayoutColumns" ) ) ;
3362
- expect ( gridColumnsQuestion ) . toBeTruthy ( ) ;
3363
- expect ( gridColumnsQuestion . allowAddRows ) . toBeFalsy ( ) ;
3364
- expect ( gridColumnsQuestion . getTitleToolbar ( ) ) . toBeTruthy ( ) ;
3365
- const helpButton = gridColumnsQuestion . titleActions . find ( a => a . id === "property-grid-help" ) ;
3366
- const addButton = gridColumnsQuestion . titleActions . find ( a => a . id === "add-item" ) ;
3367
- expect ( helpButton ) . toBeTruthy ( ) ;
3368
- expect ( addButton ) . toBeFalsy ( ) ;
3369
- } ) ;
3370
3353
test ( "Set property name into correct category" , ( ) => {
3371
3354
Serializer . addProperty ( "question" , {
3372
3355
name : "validation" ,
0 commit comments