@@ -12,6 +12,7 @@ import {
1212} from './chat.tests.js' ;
1313import MessageGroup from '__internal/ui/chat/messagegroup' ;
1414import TypingIndicator from '__internal/ui/chat/typingindicator' ;
15+ import devices from '__internal/core/m_devices' ;
1516import localization from 'localization' ;
1617import dateLocalization from 'localization/date' ;
1718
@@ -28,6 +29,7 @@ const CHAT_LAST_MESSAGEGROUP_ALIGNMENT_END_CLASS = 'dx-chat-last-messagegroup-al
2829const CHAT_MESSAGEBUBBLE_CLASS = 'dx-chat-messagebubble' ;
2930const CHAT_TYPINGINDICATOR_CLASS = 'dx-chat-typingindicator' ;
3031const SCROLLVIEW_REACHBOTTOM_INDICATOR = 'dx-scrollview-scrollbottom' ;
32+ const SCROLLABLE_CONTENT = 'dx-scrollable-content' ;
3133
3234const MS_IN_DAY = 86400000 ;
3335
@@ -67,6 +69,17 @@ QUnit.module('MessageList', () => {
6769 assert . ok ( this . instance instanceof MessageList ) ;
6870 } ) ;
6971
72+ QUnit . test ( 'scrollable content box-sizing value should be border-box' , function ( assert ) {
73+ if ( devices . real ( ) . platform !== 'ios' ) {
74+ assert . ok ( true , 'test does not actual other than ios' ) ;
75+ return ;
76+ }
77+ const $scrollableContent = this . $element . find ( `.${ SCROLLABLE_CONTENT } ` ) ;
78+ const scrollBoxSizing = $scrollableContent . css ( 'box-sizing' ) ;
79+
80+ assert . strictEqual ( scrollBoxSizing , 'border-box' , 'scrollable content has right box-sizing value' ) ;
81+ } ) ;
82+
7083 QUnit . test ( 'should not be any errors if the items contain undefined values' , function ( assert ) {
7184 const items = [ { } , undefined , { } ] ;
7285
0 commit comments