mirror of
https://github.com/OpenNebula/one.git
synced 2025-03-22 18:50:08 +03:00
M #~: fireedge-func tests (#1965)
(cherry picked from commit 6bd7c594e307e4dfdb24ca822c5396a8220ed396)
This commit is contained in:
parent
c39d00ed0c
commit
d87838704a
@ -218,7 +218,12 @@ const SecurityGroupRules = memo(({ id, actions, rules }) => {
|
||||
return (
|
||||
<>
|
||||
<Stack direction="row" spacing={1} alignItems="center">
|
||||
<Typography noWrap component="span" variant="subtitle1">
|
||||
<Typography
|
||||
noWrap
|
||||
component="span"
|
||||
variant="subtitle1"
|
||||
data-cy={`${id}-rule-name`}
|
||||
>
|
||||
{`#${id} ${name}`}
|
||||
</Typography>
|
||||
{!!actions && <div className={classes.actions}>{actions}</div>}
|
||||
@ -230,7 +235,11 @@ const SecurityGroupRules = memo(({ id, actions, rules }) => {
|
||||
</Typography>
|
||||
))}
|
||||
{rules.map((rule, ruleIdx) => (
|
||||
<SecurityGroupRule key={`${id}-rule-${ruleIdx}`} rule={rule} />
|
||||
<SecurityGroupRule
|
||||
data-cy={`${id}-rule-${ruleIdx}`}
|
||||
key={`${id}-rule-${ruleIdx}`}
|
||||
rule={rule}
|
||||
/>
|
||||
))}
|
||||
</Box>
|
||||
</>
|
||||
@ -257,10 +266,10 @@ const SecurityGroupRule = memo(({ rule, 'data-cy': cy }) => {
|
||||
{ text: RANGE, dataCy: 'range' },
|
||||
{ text: NETWORK_ID, dataCy: 'networkid' },
|
||||
{ text: ICMP_TYPE, dataCy: 'icmp-type' },
|
||||
].map(({ text, dataCy }) => (
|
||||
].map(({ text, dataCy }, index) => (
|
||||
<Typography
|
||||
noWrap
|
||||
key={cy}
|
||||
key={`${index}-${cy}`}
|
||||
data-cy={`${cy}-${dataCy}`}
|
||||
variant="subtitle2"
|
||||
>
|
||||
|
Loading…
x
Reference in New Issue
Block a user