MCPcopy Create free account
hub / github.com/SeleniumHQ/selenium / Stereotypes

Function Stereotypes

javascript/grid-ui/src/components/Node/Stereotypes.tsx:52–87  ·  view source on GitHub ↗
(props)

Source from the content-addressed store, hash-verified

50}
51
52function Stereotypes (props) {
53 const { stereotypes } = props
54
55 return (
56 <Grid item xs={12}>
57 <Typography
58 color='textPrimary'
59 gutterBottom
60 variant='h6'
61 >
62 <Box fontWeight='fontWeightBold' mr={1} display='inline'>
63 Stereotypes
64 </Box>
65 </Typography>
66 <Grid container direction='row' marginLeft={1}>
67 {
68 stereotypes
69 .sort((a, b) => {
70 const browserNameComparison = a.browserName.localeCompare(
71 b.browserName)
72 if (browserNameComparison !== 0) {
73 return browserNameComparison
74 } else {
75 return a.browserVersion.localeCompare(b.browserVersion)
76 }
77 })
78 .map((slotStereotype: any, idx) => {
79 return (
80 CreateStereotypeGridItem(slotStereotype, idx)
81 )
82 })
83 }
84 </Grid>
85 </Grid>
86 )
87}
88
89export default Stereotypes

Callers

nothing calls this directly

Calls 2

CreateStereotypeGridItemFunction · 0.85
mapMethod · 0.45

Tested by

no test coverage detected