@@ -5,7 +5,6 @@ import { render, waitFor, fireEvent } from '@testing-library/react';
55
66import GradingScale from './GradingScale' ;
77import GradingScaleHandle from './components/GradingScaleHandle' ;
8- import GradingScaleSegment from './components/GradingScaleSegment.tsx' ;
98
109const gradeCutoffs = { A : 0.9 , B : 0.8 , C : 0.7 } ;
1110
@@ -137,33 +136,7 @@ describe('<GradingScale />', () => {
137136 getHandleProps = { ( ) => ( { } ) }
138137 /> ,
139138 ) ;
140- const btn = container . querySelector ( '.grading-scale-segment-btn-resize' ) ;
141- expect ( btn ) . toBeInTheDocument ( ) ;
142- expect ( btn ) . not . toBeDisabled ( ) ;
143- } ) ;
144-
145- it ( 'renders GradingScaleSegment with default isEditable=true when prop is omitted' , async ( ) => {
146- const gradingSegments = [
147- { current : 100 , previous : 0 } ,
148- { current : 50 , previous : 0 } ,
149- { current : 30 , previous : 0 } ,
150- ] ;
151- const { getAllByTestId } = render (
152- < IntlProvider locale = "en" messages = { { } } >
153- < GradingScaleSegment
154- idx = { 1 }
155- value = { 50 }
156- getSegmentProps = { ( ) => ( { } ) }
157- handleLetterChange = { jest . fn ( ) }
158- letters = { [ 'A' , 'B' , 'C' ] }
159- gradingSegments = { gradingSegments }
160- removeGradingSegment = { jest . fn ( ) }
161- />
162- </ IntlProvider > ,
163- ) ;
164- await waitFor ( ( ) => {
165- getAllByTestId ( 'grading-scale-segment-input' ) . forEach ( ( input ) => expect ( input ) . not . toBeDisabled ( ) ) ;
166- } ) ;
139+ expect ( container . querySelector ( '.grading-scale-segment-btn-resize' ) ) . not . toBeDisabled ( ) ;
167140 } ) ;
168141
169142 it ( 'should disable inputs and buttons when isEditable is false' , async ( ) => {
0 commit comments