@@ -29,7 +29,12 @@ const MeshMapSignUpcard = ({ classes, hasAccessToMeshMap = false }) => {
2929 < UsesSistent >
3030 < Grid item { ...LARGE_6_MED_12_GRID_STYLE } >
3131 < CardContainer >
32- < Typography className = { classes . frontContent } variant = "h5" component = "div" >
32+ < Typography
33+ className = { classes . frontContent }
34+ data-testid = "kanvas-signup-heading"
35+ variant = "h5"
36+ component = "div"
37+ >
3338 Kanvas
3439 </ Typography >
3540
@@ -43,6 +48,7 @@ const MeshMapSignUpcard = ({ classes, hasAccessToMeshMap = false }) => {
4348 < div style = { { textAlign : 'right' } } >
4449 < Button
4550 variant = "contained"
51+ data-testid = "kanvas-signup-btn"
4652 disabled = { hasAccessToMeshMap }
4753 onClick = { ( e ) => handleSignUp ( e ) }
4854 >
@@ -66,6 +72,7 @@ const MeshMapSnapShotLogo = () => {
6672 maxWidth : '220px' ,
6773 maxHeight : '150px' ,
6874 } }
75+ data-testid = "kanvas-snapshot-image"
6976 src = "/static/img/meshmap-snapshot-logo.svg"
7077 />
7178 ) ;
@@ -81,11 +88,16 @@ const MeshMapSnapShotCard = ({ classes, githubActionEnabled = false }) => {
8188 < UsesSistent >
8289 < Grid item { ...LARGE_6_MED_12_GRID_STYLE } >
8390 < CardContainer >
84- < Typography className = { classes . frontContent } variant = "h5" component = "div" >
91+ < Typography
92+ className = { classes . frontContent }
93+ data-testid = "kanvas-snapshot-heading"
94+ variant = "h5"
95+ component = "div"
96+ >
8597 GitHub Action: Kanvas Snapshot
8698 </ Typography >
8799
88- < FrontSideDescription variant = "body" >
100+ < FrontSideDescription data-testid = "kanvas-snapshot-description" variant = "body" >
89101 < MeshMapSnapShotLogo />
90102 Connect Kanvas to your GitHub repo and see changes pull request-to-pull request. Get
91103 snapshots of your infrastructure directly in your PRs.
@@ -95,6 +107,7 @@ const MeshMapSnapShotCard = ({ classes, githubActionEnabled = false }) => {
95107 < Button
96108 variant = "contained"
97109 color = "primary"
110+ data-testid = "kanvas-snapshot-enable-btn"
98111 disabled = { githubActionEnabled }
99112 onClick = { ( e ) => handleEnable ( e ) }
100113 >
@@ -135,7 +148,12 @@ const MesheryPerformanceAction = ({ classes, githubActionEnabled = false }) => {
135148 < UsesSistent >
136149 < Grid item { ...LARGE_6_MED_12_GRID_STYLE } >
137150 < CardContainer >
138- < Typography className = { classes . frontContent } variant = "h5" component = "div" >
151+ < Typography
152+ className = { classes . frontContent }
153+ data-testid = "performance-analysis-heading"
154+ variant = "h5"
155+ component = "div"
156+ >
139157 GitHub Action: Performance Analysis
140158 </ Typography >
141159
@@ -148,6 +166,7 @@ const MesheryPerformanceAction = ({ classes, githubActionEnabled = false }) => {
148166 < div style = { { textAlign : 'right' } } >
149167 < Button
150168 variant = "contained"
169+ data-testid = "performance-analysis-enable-btn"
151170 disabled = { githubActionEnabled }
152171 onClick = { ( e ) => handleEnable ( e ) }
153172 >
@@ -185,7 +204,12 @@ const MesheryDockerExtension = ({ classes }) => {
185204 < UsesSistent >
186205 < Grid item { ...LARGE_6_MED_12_GRID_STYLE } >
187206 < CardContainer >
188- < Typography className = { classes . frontContent } variant = "h5" component = "div" >
207+ < Typography
208+ className = { classes . frontContent }
209+ data-testid = "docker-extension-heading"
210+ variant = "h5"
211+ component = "div"
212+ >
189213 Meshery Docker Extension
190214 </ Typography >
191215
@@ -197,7 +221,12 @@ const MesheryDockerExtension = ({ classes }) => {
197221 </ FrontSideDescription >
198222 {
199223 < div style = { { textAlign : 'right' } } >
200- < Button variant = "contained" color = "primary" onClick = { ( e ) => handleDownload ( e ) } >
224+ < Button
225+ variant = "contained"
226+ color = "primary"
227+ data-testid = "docker-extension-download-btn"
228+ onClick = { ( e ) => handleDownload ( e ) }
229+ >
201230 Download
202231 </ Button >
203232 </ div >
@@ -245,7 +274,12 @@ const MesheryDesignEmbedExtension = ({ classes }) => {
245274 </ FrontSideDescription >
246275 {
247276 < div style = { { textAlign : 'right' } } >
248- < Button variant = "contained" color = "primary" onClick = { ( e ) => handleLearnMore ( e ) } >
277+ < Button
278+ variant = "contained"
279+ color = "primary"
280+ data-testid = "design-embed-learn-more-btn"
281+ onClick = { ( e ) => handleLearnMore ( e ) }
282+ >
249283 Learn More
250284 </ Button >
251285 </ div >
@@ -334,12 +368,18 @@ const Extensions = ({ classes, toggleCatalogContent, capabilitiesRegistry }) =>
334368 < WrappedMesheryEmbedDesignExtension />
335369 < Grid item { ...INITIAL_GRID_SIZE } >
336370 < CardContainer >
337- < Typography className = { classes . frontContent } variant = "h5" component = "div" >
371+ < Typography
372+ className = { classes . frontContent }
373+ data-testid = "catalog-section-heading"
374+ variant = "h5"
375+ component = "div"
376+ >
338377 { 'Meshery Catalog' }
339378 </ Typography >
340379
341380 < FrontSideDescription variant = "body" >
342381 < CatalogIcon
382+ data-testid = "catalog-toggle-switch"
343383 style = { {
344384 paddingRight : '1rem' ,
345385 height : '80px' ,
0 commit comments