@@ -790,7 +790,46 @@ describe('Train model dialog', () => {
790790 key : 'dataset_size' ,
791791 } ) ,
792792 ] ,
793- augmentation : { } ,
793+ augmentation : {
794+ tiling : [
795+ getMockedConfigurationParameter ( {
796+ key : 'enable' ,
797+ type : 'bool' ,
798+ name : 'Enable tiling' ,
799+ value : false ,
800+ description : 'Whether to apply tiling to the image' ,
801+ defaultValue : false ,
802+ } ) ,
803+ getMockedConfigurationParameter ( {
804+ key : 'adaptive_tiling' ,
805+ type : 'bool' ,
806+ name : 'Adaptive tiling' ,
807+ value : true ,
808+ description : 'Whether to use adaptive tiling based on image content' ,
809+ defaultValue : true ,
810+ } ) ,
811+ getMockedConfigurationParameter ( {
812+ key : 'tile_size' ,
813+ type : 'int' ,
814+ name : 'Tile size' ,
815+ value : 400 ,
816+ description : 'Size of each tile in pixels' ,
817+ defaultValue : 400 ,
818+ maxValue : null ,
819+ minValue : 0 ,
820+ } ) ,
821+ getMockedConfigurationParameter ( {
822+ key : 'tile_overlap' ,
823+ type : 'float' ,
824+ name : 'Tile overlap' ,
825+ value : 0.2 ,
826+ description : 'Overlap between adjacent tiles as a fraction of tile size' ,
827+ defaultValue : 0.2 ,
828+ maxValue : 1 ,
829+ minValue : 0 ,
830+ } ) ,
831+ ] ,
832+ } ,
794833 filtering : { } ,
795834 } ,
796835 } )
@@ -810,6 +849,13 @@ describe('Train model dialog', () => {
810849
811850 fireEvent . click ( screen . getByRole ( 'tab' , { name : / d a t a m a n a g e m e n t / i } ) ) ;
812851
852+ expect ( screen . getByRole ( 'heading' , { name : / T i l i n g / } ) ) . toBeInTheDocument ( ) ;
853+
854+ fireEvent . click ( screen . getByRole ( 'button' , { name : 'Off' } ) ) ;
855+
856+ expect ( screen . getByRole ( 'button' , { name : 'Off' } ) ) . toHaveAttribute ( 'aria-pressed' , 'true' ) ;
857+ expect ( screen . getByRole ( 'button' , { name : / s t a r t / i } ) ) . toBeEnabled ( ) ;
858+
813859 expect ( screen . getByRole ( 'heading' , { name : / T r a i n i n g s u b s e t s / } ) ) . toBeInTheDocument ( ) ;
814860
815861 fireEvent . keyDown ( screen . getByLabelText ( 'Start range' ) , { key : 'Left' } ) ;
0 commit comments