@@ -14,15 +14,15 @@ jest.mock('next-intl', () => ({
1414 title : 'Experimental Features' ,
1515 description :
1616 'Early access to new features. These are experimental and subject to change or removal.' ,
17- 'features.testRunSearch ' : 'Test Run searching and viewing ' ,
17+ 'features.graph ' : 'Test Run Graphs ' ,
1818 } ;
1919 return translations [ key ] || key ;
2020 } ,
2121} ) ) ;
2222
2323describe ( 'ExperimentalFeaturesSection' , ( ) => {
24- test ( 'Renders correctly when "testRuns " flag is disabled: Checkbox is unchecked' , ( ) => {
25- const mockIsFeatureEnabled = ( key : string ) => key !== FEATURE_FLAGS . TEST_RUNS ;
24+ test ( 'Renders correctly when "graph " flag is disabled: Checkbox is unchecked' , ( ) => {
25+ const mockIsFeatureEnabled = ( key : string ) => key !== FEATURE_FLAGS . GRAPH ;
2626
2727 render (
2828 < FeatureFlagContext . Provider
@@ -32,13 +32,13 @@ describe('ExperimentalFeaturesSection', () => {
3232 </ FeatureFlagContext . Provider >
3333 ) ;
3434
35- const checkbox = screen . getByLabelText ( / T e s t R u n / i) ;
35+ const checkbox = screen . getByLabelText ( / T e s t R u n G r a p h s / i) ;
3636 expect ( checkbox ) . not . toBeChecked ( ) ;
3737 } ) ;
3838
39- test ( 'Renders correctly when a "testRuns " enabled: Checkbox is checked' , ( ) => {
39+ test ( 'Renders correctly when a "graph " enabled: Checkbox is checked' , ( ) => {
4040 const mockIsFeatureEnabled = ( key : string ) => {
41- return key === FEATURE_FLAGS . TEST_RUNS ;
41+ return key === FEATURE_FLAGS . GRAPH ;
4242 } ;
4343
4444 render (
@@ -48,7 +48,7 @@ describe('ExperimentalFeaturesSection', () => {
4848 < ExperimentalFeaturesSection />
4949 </ FeatureFlagContext . Provider >
5050 ) ;
51- const checkbox = screen . getByLabelText ( / T e s t R u n / i) ;
51+ const checkbox = screen . getByLabelText ( / T e s t R u n G r a p h s / i) ;
5252 expect ( checkbox ) . toBeChecked ( ) ;
5353 } ) ;
5454
@@ -63,10 +63,10 @@ describe('ExperimentalFeaturesSection', () => {
6363 </ FeatureFlagContext . Provider >
6464 ) ;
6565
66- const checkbox = screen . getByRole ( 'checkbox' , { name : / T e s t R u n / i } ) ;
66+ const checkbox = screen . getByRole ( 'checkbox' , { name : / T e s t R u n G r a p h s / i } ) ;
6767 fireEvent . click ( checkbox ) ;
6868
6969 expect ( mockToggle ) . toHaveBeenCalledTimes ( 1 ) ;
70- expect ( mockToggle ) . toHaveBeenCalledWith ( FEATURE_FLAGS . TEST_RUNS ) ;
70+ expect ( mockToggle ) . toHaveBeenCalledWith ( FEATURE_FLAGS . GRAPH ) ;
7171 } ) ;
7272} ) ;
0 commit comments