File tree 1 file changed +2
-2
lines changed
packages/survey-creator-core/tests/property-grid
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -3673,12 +3673,12 @@ test("Pages Collection Editor - The Trash Bin (Remove) button is unavailable whe
3673
3673
const creator = new CreatorTester ( undefined , undefined , false ) ;
3674
3674
const propertyGrid = new PropertyGridModelTester ( creator . survey , creator ) ;
3675
3675
const pagesQuestion = < QuestionMatrixDynamicModel > propertyGrid . survey . getQuestionByName ( "pages" ) ;
3676
- expect ( pagesQuestion . visibleRows ) . toHaveLength ( 0 ) ;
3676
+ const rowsCount = pagesQuestion . visibleRows . length ;
3677
3677
const action = pagesQuestion . getTitleActions ( ) . filter ( action => action . id === "add-item" ) [ 0 ] ;
3678
3678
expect ( action ) . toBeTruthy ( ) ;
3679
3679
action . action ( ) ;
3680
3680
action . action ( ) ;
3681
- expect ( pagesQuestion . visibleRows ) . toHaveLength ( 2 ) ;
3681
+ expect ( pagesQuestion . visibleRows ) . toHaveLength ( rowsCount + 2 ) ;
3682
3682
3683
3683
const rows = pagesQuestion . renderedTable . rows ;
3684
3684
expect ( rows [ 0 ] . isErrorsRow ) . toBeFalsy ( ) ;
You can’t perform that action at this time.
0 commit comments