File tree 3 files changed +41
-5
lines changed
3 files changed +41
-5
lines changed Original file line number Diff line number Diff line change
1
+ import { expect , test } from "@playwright/test" ;
2
+ import * as API from "api/api" ;
3
+ import { setupApiCalls } from "../../api" ;
4
+
5
+ test ( "enabled security settings" , async ( { page } ) => {
6
+ await setupApiCalls ( page ) ;
7
+
8
+ await page . goto ( "/deployment/security" , { waitUntil : "domcontentloaded" } ) ;
9
+
10
+ // Load deployment settings
11
+ const config = await API . getDeploymentConfig ( ) ;
12
+
13
+ // Check flags
14
+
15
+ } ) ;
Original file line number Diff line number Diff line change @@ -41,7 +41,11 @@ const styles = {
41
41
} satisfies Record < string , Interpolation < Theme > > ;
42
42
43
43
export const EnabledBadge : FC = ( ) => {
44
- return < span css = { [ styles . badge , styles . enabledBadge ] } > Enabled</ span > ;
44
+ return (
45
+ < span css = { [ styles . badge , styles . enabledBadge ] } className = "option-enabled" >
46
+ Enabled
47
+ </ span >
48
+ ) ;
45
49
} ;
46
50
47
51
export const EntitledBadge : FC = ( ) => {
@@ -95,6 +99,7 @@ export const DisabledBadge: FC = forwardRef<
95
99
color : theme . experimental . l1 . text ,
96
100
} ) ,
97
101
] }
102
+ className = "option-disabled"
98
103
>
99
104
Disabled
100
105
</ span >
Original file line number Diff line number Diff line change @@ -38,15 +38,27 @@ export const OptionValue: FC<OptionValueProps> = (props) => {
38
38
}
39
39
40
40
if ( typeof value === "number" ) {
41
- return < span css = { styles . option } > { value } </ span > ;
41
+ return (
42
+ < span css = { styles . option } className = "option-value-number" >
43
+ { value }
44
+ </ span >
45
+ ) ;
42
46
}
43
47
44
48
if ( ! value || value . length === 0 ) {
45
- return < span css = { styles . option } > Not set</ span > ;
49
+ return (
50
+ < span css = { styles . option } className = "option-value-empty" >
51
+ Not set
52
+ </ span >
53
+ ) ;
46
54
}
47
55
48
56
if ( typeof value === "string" ) {
49
- return < span css = { styles . option } > { value } </ span > ;
57
+ return (
58
+ < span css = { styles . option } className = "option-value-string" >
59
+ { value }
60
+ </ span >
61
+ ) ;
50
62
}
51
63
52
64
if ( typeof value === "object" && ! Array . isArray ( value ) ) {
@@ -104,7 +116,11 @@ export const OptionValue: FC<OptionValueProps> = (props) => {
104
116
) ;
105
117
}
106
118
107
- return < span css = { styles . option } > { JSON . stringify ( value ) } </ span > ;
119
+ return (
120
+ < span css = { styles . option } className = "option-value-json" >
121
+ { JSON . stringify ( value ) }
122
+ </ span >
123
+ ) ;
108
124
} ;
109
125
110
126
type OptionConfigProps = HTMLAttributes < HTMLDivElement > & { isSource : boolean } ;
You can’t perform that action at this time.
0 commit comments