@@ -152,7 +152,9 @@ describe('FormRunFromRegistry', () => {
152152 await userEvent . click ( networkTab )
153153 expect ( networkTab ) . toHaveAttribute ( 'aria-selected' , 'true' )
154154 expect ( configTab ) . toHaveAttribute ( 'aria-selected' , 'false' )
155- const switchLabel = screen . getByLabelText ( 'Network isolation' )
155+ const switchLabel = screen . getByLabelText (
156+ 'Enable outbound network filtering'
157+ )
156158 expect ( switchLabel ) . toBeInTheDocument ( )
157159 expect ( switchLabel ) . toHaveAttribute ( 'role' , 'switch' )
158160 expect ( switchLabel ) . toHaveAttribute ( 'aria-checked' , 'false' )
@@ -788,7 +790,9 @@ describe('FormRunFromRegistry', () => {
788790 await userEvent . click ( networkTab )
789791
790792 // Enable the switch
791- const switchLabel = screen . getByLabelText ( 'Network isolation' )
793+ const switchLabel = screen . getByLabelText (
794+ 'Enable outbound network filtering'
795+ )
792796 await userEvent . click ( switchLabel )
793797
794798 // The alert should appear
@@ -818,7 +822,9 @@ describe('FormRunFromRegistry', () => {
818822 } )
819823 const networkTab = screen . getByRole ( 'tab' , { name : / n e t w o r k i s o l a t i o n / i } )
820824 await userEvent . click ( networkTab )
821- const switchLabel = screen . getByLabelText ( 'Network isolation' )
825+ const switchLabel = screen . getByLabelText (
826+ 'Enable outbound network filtering'
827+ )
822828 await userEvent . click ( switchLabel )
823829
824830 // By default, all are empty, so alert should show
@@ -885,7 +891,9 @@ describe('FormRunFromRegistry', () => {
885891 const networkTab = screen . getByRole ( 'tab' , { name : / n e t w o r k i s o l a t i o n / i } )
886892 await userEvent . click ( networkTab )
887893 // Enable network isolation
888- const switchLabel = screen . getByLabelText ( 'Network isolation' )
894+ const switchLabel = screen . getByLabelText (
895+ 'Enable outbound network filtering'
896+ )
889897 await userEvent . click ( switchLabel )
890898 // Add ports
891899 const addPortButton = screen . getByRole ( 'button' , { name : 'Add a port' } )
@@ -941,7 +949,9 @@ describe('FormRunFromRegistry', () => {
941949 const networkTab = screen . getByRole ( 'tab' , { name : / n e t w o r k i s o l a t i o n / i } )
942950 await userEvent . click ( networkTab )
943951 // Enable network isolation
944- const switchLabel = screen . getByLabelText ( 'Network isolation' )
952+ const switchLabel = screen . getByLabelText (
953+ 'Enable outbound network filtering'
954+ )
945955 await userEvent . click ( switchLabel )
946956 // Do not add any ports
947957 // Submit
@@ -986,12 +996,14 @@ describe('Allowed Hosts field', () => {
986996 const networkTab = screen . getByRole ( 'tab' , { name : / n e t w o r k i s o l a t i o n / i } )
987997 await userEvent . click ( networkTab )
988998 // Enable network isolation
989- const switchLabel = screen . getByLabelText ( 'Network isolation' )
999+ const switchLabel = screen . getByLabelText (
1000+ 'Enable outbound network filtering'
1001+ )
9901002 await userEvent . click ( switchLabel )
9911003 // Add a host so the input and label are rendered
9921004 await userEvent . click ( screen . getByRole ( 'button' , { name : / a d d a h o s t / i } ) )
9931005 // Allowed Hosts field should be present
994- expect ( screen . getByLabelText ( 'Allowed Hosts ' ) ) . toBeInTheDocument ( )
1006+ expect ( screen . getByLabelText ( 'Allowed hosts ' ) ) . toBeInTheDocument ( )
9951007 // Add host button should be present
9961008 expect (
9971009 screen . getByRole ( 'button' , { name : / a d d a h o s t / i } )
@@ -1015,7 +1027,9 @@ describe('Allowed Hosts field', () => {
10151027 } )
10161028 const networkTab = screen . getByRole ( 'tab' , { name : / n e t w o r k i s o l a t i o n / i } )
10171029 await userEvent . click ( networkTab )
1018- const switchLabel = screen . getByLabelText ( 'Network isolation' )
1030+ const switchLabel = screen . getByLabelText (
1031+ 'Enable outbound network filtering'
1032+ )
10191033 await userEvent . click ( switchLabel )
10201034 // Add a host
10211035 const addHostButton = screen . getByRole ( 'button' , { name : / a d d a h o s t / i } )
@@ -1053,7 +1067,9 @@ describe('Allowed Hosts field', () => {
10531067 } )
10541068 const networkTab = screen . getByRole ( 'tab' , { name : / n e t w o r k i s o l a t i o n / i } )
10551069 await userEvent . click ( networkTab )
1056- const switchLabel = screen . getByLabelText ( 'Network isolation' )
1070+ const switchLabel = screen . getByLabelText (
1071+ 'Enable outbound network filtering'
1072+ )
10571073 await userEvent . click ( switchLabel )
10581074 const addHostButton = screen . getByRole ( 'button' , { name : / a d d a h o s t / i } )
10591075 await userEvent . click ( addHostButton )
@@ -1122,7 +1138,9 @@ describe('Allowed Hosts field', () => {
11221138 )
11231139 const networkTab = screen . getByRole ( 'tab' , { name : / n e t w o r k i s o l a t i o n / i } )
11241140 await userEvent . click ( networkTab )
1125- const switchLabel = screen . getByLabelText ( 'Network isolation' )
1141+ const switchLabel = screen . getByLabelText (
1142+ 'Enable outbound network filtering'
1143+ )
11261144 await userEvent . click ( switchLabel )
11271145 const addHostButton = screen . getByRole ( 'button' , { name : / a d d a h o s t / i } )
11281146 await userEvent . click ( addHostButton )
@@ -1166,7 +1184,9 @@ describe('Allowed Hosts field', () => {
11661184 } )
11671185 const networkTab = screen . getByRole ( 'tab' , { name : / n e t w o r k i s o l a t i o n / i } )
11681186 await userEvent . click ( networkTab )
1169- const switchLabel = screen . getByLabelText ( 'Network isolation' )
1187+ const switchLabel = screen . getByLabelText (
1188+ 'Enable outbound network filtering'
1189+ )
11701190 await userEvent . click ( switchLabel )
11711191 // Should be empty by default
11721192 expect ( screen . queryByLabelText ( 'Host 1' ) ) . not . toBeInTheDocument ( )
@@ -1206,7 +1226,9 @@ describe('Network Isolation Tab Activation', () => {
12061226 // Enable network isolation and add an invalid host
12071227 const networkTab = screen . getByRole ( 'tab' , { name : / n e t w o r k i s o l a t i o n / i } )
12081228 await userEvent . click ( networkTab )
1209- const switchLabel = screen . getByLabelText ( 'Network isolation' )
1229+ const switchLabel = screen . getByLabelText (
1230+ 'Enable outbound network filtering'
1231+ )
12101232 await userEvent . click ( switchLabel )
12111233 // Add a host and enter an invalid value
12121234 const addHostBtn = screen . getByRole ( 'button' , { name : / a d d a h o s t / i } )
0 commit comments