@@ -22,6 +22,7 @@ describe('ConfigEditor', () => {
22
22
expect ( screen . getByPlaceholderText ( Components . ConfigEditor . Username . placeholder ) ) . toBeInTheDocument ( ) ;
23
23
expect ( screen . getByPlaceholderText ( Components . ConfigEditor . Password . placeholder ) ) . toBeInTheDocument ( ) ;
24
24
expect ( screen . getByText ( Components . ConfigEditor . TlsMode . placeholder ) ) . toBeInTheDocument ( ) ;
25
+ expect ( screen . getByText ( Components . ConfigEditor . TlsMethod . label ) ) . toBeInTheDocument ( ) ;
25
26
} ) ;
26
27
it ( 'with password' , async ( ) => {
27
28
render (
@@ -53,7 +54,6 @@ describe('ConfigEditor', () => {
53
54
) ;
54
55
expect ( screen . queryByText ( PostgresTLSModes . disable ) ) . toBeInTheDocument ( ) ;
55
56
expect ( screen . queryByPlaceholderText ( Components . ConfigEditor . TlsMethod . placeholder ) ) . not . toBeInTheDocument ( ) ;
56
- expect ( screen . queryByPlaceholderText ( Components . ConfigEditor . TLSCACertFile . placeholder ) ) . not . toBeInTheDocument ( ) ;
57
57
expect (
58
58
screen . queryByPlaceholderText ( Components . ConfigEditor . TLSClientCertFile . placeholder )
59
59
) . not . toBeInTheDocument ( ) ;
@@ -62,7 +62,7 @@ describe('ConfigEditor', () => {
62
62
expect ( screen . queryByPlaceholderText ( Components . ConfigEditor . TLSClientCert . placeholder ) ) . not . toBeInTheDocument ( ) ;
63
63
expect ( screen . queryByPlaceholderText ( Components . ConfigEditor . TLSClientKey . placeholder ) ) . not . toBeInTheDocument ( ) ;
64
64
} ) ;
65
- it ( 'with verifyCA tlsMode and fileContent tlsMethod' , async ( ) => {
65
+ it ( 'with tlsMode and filePath tlsMethod' , async ( ) => {
66
66
render (
67
67
< ConfigEditor
68
68
{ ...mockConfigEditorProps ( ) }
@@ -71,14 +71,14 @@ describe('ConfigEditor', () => {
71
71
jsonData : {
72
72
...mockConfigEditorProps ( ) . options . jsonData ,
73
73
tlsMode : PostgresTLSModes . verifyCA ,
74
- tlsConfigurationMethod : PostgresTLSMethods . fileContent ,
74
+ tlsConfigurationMethod : PostgresTLSMethods . filePath ,
75
75
} ,
76
76
} }
77
77
/>
78
78
) ;
79
79
expect ( screen . queryByText ( PostgresTLSModes . verifyCA ) ) . toBeInTheDocument ( ) ;
80
- expect ( screen . queryByPlaceholderText ( Components . ConfigEditor . TLSCACertFile . placeholder ) ) . not . toBeInTheDocument ( ) ;
81
- expect ( screen . queryByPlaceholderText ( Components . ConfigEditor . TLSCACert . placeholder ) ) . toBeInTheDocument ( ) ;
80
+ expect ( screen . queryByText ( Components . ConfigEditor . TlsMethod . placeholder ) ) . toBeInTheDocument ( ) ;
81
+ expect ( screen . queryByPlaceholderText ( Components . ConfigEditor . TLSCACert . placeholder ) ) . not . toBeInTheDocument ( ) ;
82
82
} ) ;
83
83
84
84
it ( 'with verifyFull tlsMode and fileContent tlsMethod' , async ( ) => {
@@ -96,7 +96,7 @@ describe('ConfigEditor', () => {
96
96
/>
97
97
) ;
98
98
expect ( screen . queryByText ( PostgresTLSModes . verifyFull ) ) . toBeInTheDocument ( ) ;
99
- expect ( screen . queryByPlaceholderText ( Components . ConfigEditor . TLSCACertFile . placeholder ) ) . not . toBeInTheDocument ( ) ;
99
+ expect ( screen . queryByText ( Components . ConfigEditor . TlsMethod . placeholder ) ) . toBeInTheDocument ( ) ;
100
100
expect ( screen . queryByPlaceholderText ( Components . ConfigEditor . TLSCACert . placeholder ) ) . toBeInTheDocument ( ) ;
101
101
} ) ;
102
102
0 commit comments