@@ -98,7 +98,7 @@ describe("Bedrock Component", () => {
9898 expect ( screen . queryByTestId ( "vpc-endpoint-input" ) ) . not . toBeInTheDocument ( )
9999
100100 // Click the checkbox
101- fireEvent . click ( screen . getByTestId ( "checkbox-input-use-custom-vpc-endpoint " ) )
101+ fireEvent . click ( screen . getByTestId ( "checkbox-input-settings:providers.awsbedrockvpc.usecustomvpcendpoint " ) )
102102
103103 // Text field should now be visible
104104 expect ( screen . getByTestId ( "vpc-endpoint-input" ) ) . toBeInTheDocument ( )
@@ -123,7 +123,7 @@ describe("Bedrock Component", () => {
123123 expect ( screen . getByTestId ( "vpc-endpoint-input" ) ) . toBeInTheDocument ( )
124124
125125 // Click the checkbox to uncheck it
126- fireEvent . click ( screen . getByTestId ( "checkbox-input-use-custom-vpc-endpoint " ) )
126+ fireEvent . click ( screen . getByTestId ( "checkbox-input-settings:providers.awsbedrockvpc.usecustomvpcendpoint " ) )
127127
128128 // Text field should now be hidden
129129 expect ( screen . queryByTestId ( "vpc-endpoint-input" ) ) . not . toBeInTheDocument ( )
@@ -208,13 +208,13 @@ describe("Bedrock Component", () => {
208208 expect ( screen . getByTestId ( "vpc-endpoint-input" ) ) . toHaveValue ( "https://bedrock-vpc.example.com" )
209209
210210 // Uncheck the checkbox
211- fireEvent . click ( screen . getByTestId ( "checkbox-input-use-custom-vpc-endpoint " ) )
211+ fireEvent . click ( screen . getByTestId ( "checkbox-input-settings:providers.awsbedrockvpc.usecustomvpcendpoint " ) )
212212
213213 // Verify endpoint enabled was set to false
214214 expect ( mockSetApiConfigurationField ) . toHaveBeenCalledWith ( "awsBedrockEndpointEnabled" , false )
215215
216216 // Check the checkbox again
217- fireEvent . click ( screen . getByTestId ( "checkbox-input-use-custom-vpc-endpoint " ) )
217+ fireEvent . click ( screen . getByTestId ( "checkbox-input-settings:providers.awsbedrockvpc.usecustomvpcendpoint " ) )
218218
219219 // Verify endpoint enabled was set to true
220220 expect ( mockSetApiConfigurationField ) . toHaveBeenCalledWith ( "awsBedrockEndpointEnabled" , true )
@@ -275,7 +275,7 @@ describe("Bedrock Component", () => {
275275 // Check for the example URLs section
276276 // Since we don't have a specific testid for the examples section,
277277 // we'll check for the text content
278- expect ( screen . getByText ( "Examples: " ) ) . toBeInTheDocument ( )
278+ expect ( screen . getByText ( "settings:providers.awsBedrockVpc.examples " ) ) . toBeInTheDocument ( )
279279 expect ( screen . getByText ( "• https://vpce-xxx.bedrock.region.vpce.amazonaws.com/" ) ) . toBeInTheDocument ( )
280280 expect ( screen . getByText ( "• https://gateway.my-company.com/route/app/bedrock" ) ) . toBeInTheDocument ( )
281281 } )
@@ -295,13 +295,13 @@ describe("Bedrock Component", () => {
295295 )
296296
297297 // Initially the examples should be visible
298- expect ( screen . getByText ( "Examples: " ) ) . toBeInTheDocument ( )
298+ expect ( screen . getByText ( "settings:providers.awsBedrockVpc.examples " ) ) . toBeInTheDocument ( )
299299
300300 // Uncheck the VPC endpoint checkbox
301- fireEvent . click ( screen . getByTestId ( "checkbox-input-use-custom-vpc-endpoint " ) )
301+ fireEvent . click ( screen . getByTestId ( "checkbox-input-settings:providers.awsbedrockvpc.usecustomvpcendpoint " ) )
302302
303303 // Now the examples should be hidden
304- expect ( screen . queryByText ( "Examples: " ) ) . not . toBeInTheDocument ( )
304+ expect ( screen . queryByText ( "settings:providers.awsBedrockVpc.examples " ) ) . not . toBeInTheDocument ( )
305305 expect ( screen . queryByText ( "• https://vpce-xxx.bedrock.region.vpce.amazonaws.com/" ) ) . not . toBeInTheDocument ( )
306306 expect ( screen . queryByText ( "• https://gateway.my-company.com/route/app/bedrock" ) ) . not . toBeInTheDocument ( )
307307 } )
@@ -353,7 +353,7 @@ describe("Bedrock Component", () => {
353353 )
354354
355355 // Verify checkbox is checked and endpoint is visible
356- expect ( screen . getByTestId ( "checkbox-input-use-custom-vpc-endpoint " ) ) . toBeChecked ( )
356+ expect ( screen . getByTestId ( "checkbox-input-settings:providers.awsbedrockvpc.usecustomvpcendpoint " ) ) . toBeChecked ( )
357357 expect ( screen . getByTestId ( "vpc-endpoint-input" ) ) . toBeInTheDocument ( )
358358 expect ( screen . getByTestId ( "vpc-endpoint-input" ) ) . toHaveValue ( "https://custom-endpoint.aws.com" )
359359
@@ -374,7 +374,7 @@ describe("Bedrock Component", () => {
374374 )
375375
376376 // Verify checkbox is unchecked and endpoint is not visible
377- expect ( screen . getByTestId ( "checkbox-input-use-custom-vpc-endpoint " ) ) . not . toBeChecked ( )
377+ expect ( screen . getByTestId ( "checkbox-input-settings:providers.awsbedrockvpc.usecustomvpcendpoint " ) ) . not . toBeChecked ( )
378378 expect ( screen . queryByTestId ( "vpc-endpoint-input" ) ) . not . toBeInTheDocument ( )
379379 } )
380380
@@ -394,7 +394,7 @@ describe("Bedrock Component", () => {
394394 )
395395
396396 // Verify initial state
397- expect ( screen . getByTestId ( "checkbox-input-use-custom-vpc-endpoint " ) ) . not . toBeChecked ( )
397+ expect ( screen . getByTestId ( "checkbox-input-settings:providers.awsbedrockvpc.usecustomvpcendpoint " ) ) . not . toBeChecked ( )
398398 expect ( screen . queryByTestId ( "vpc-endpoint-input" ) ) . not . toBeInTheDocument ( )
399399
400400 // Update with new configuration
@@ -412,7 +412,7 @@ describe("Bedrock Component", () => {
412412 )
413413
414414 // Verify updated state
415- expect ( screen . getByTestId ( "checkbox-input-use-custom-vpc-endpoint " ) ) . toBeChecked ( )
415+ expect ( screen . getByTestId ( "checkbox-input-settings:providers.awsbedrockvpc.usecustomvpcendpoint " ) ) . toBeChecked ( )
416416 expect ( screen . getByTestId ( "vpc-endpoint-input" ) ) . toBeInTheDocument ( )
417417 expect ( screen . getByTestId ( "vpc-endpoint-input" ) ) . toHaveValue ( "https://updated-endpoint.aws.com" )
418418 } )
0 commit comments