@@ -14,7 +14,7 @@ const DATEBOX_CLASS = 'dx-datebox';
1414const stylingModes = [ 'outlined' , 'underlined' , 'filled' ] ;
1515const visibleLabelModes = [ 'floating' , 'static' , 'outside' ] ;
1616
17- fixture . disablePageReloads `DateBox_Label`
17+ fixture `DateBox_Label`
1818 . page ( url ( __dirname , '../../container.html' ) ) ;
1919
2020test ( 'Symbol parts in label should not be cropped' , async ( t ) => {
@@ -48,12 +48,8 @@ test('Symbol parts in label should not be cropped', async (t) => {
4848test ( 'DateBox with buttons container' , async ( t ) => {
4949 const { takeScreenshot, compareResults } = createScreenshotsComparer ( t ) ;
5050
51- await insertStylesheetRulesToPage ( `#container { display: flex; flex-wrap: wrap; } .${ DATEBOX_CLASS } { width: 220px; margin: 2px; }` ) ;
52-
5351 await testScreenshot ( t , takeScreenshot , 'DateBox render with buttons container.png' ) ;
5452
55- await removeStylesheetRulesFromPage ( ) ;
56-
5753 await t
5854 . expect ( compareResults . isValid ( ) )
5955 . ok ( compareResults . errorMessages ( ) ) ;
@@ -81,4 +77,8 @@ test('DateBox with buttons container', async (t) => {
8177 }
8278 }
8379 }
80+
81+ await insertStylesheetRulesToPage ( `#container { display: flex; flex-wrap: wrap; } .${ DATEBOX_CLASS } { width: 220px; margin: 2px; }` ) ;
82+ } ) . after ( async ( ) => {
83+ await removeStylesheetRulesFromPage ( ) ;
8484} ) ;
0 commit comments