File tree 1 file changed +9
-7
lines changed
static/app/views/codecov/tests/onboardingSteps
1 file changed +9
-7
lines changed Original file line number Diff line number Diff line change @@ -45,7 +45,7 @@ export function OutputCoverageFile({stepString}: OutputCoverageFileProps) {
45
45
supported : (
46
46
// TODO: the new version of this link is still TBD
47
47
< Link to = "https://docs.codecov.com/docs/test-analytics#:~:text=Only%20JUnit%20XML%20test%20result%20files%20are%20supported%20at%20the%20moment" >
48
- supported languages
48
+ { t ( ' supported languages' ) }
49
49
</ Link >
50
50
) ,
51
51
}
@@ -62,17 +62,19 @@ export function OutputCoverageFile({stepString}: OutputCoverageFileProps) {
62
62
value = { selectedFramework }
63
63
onChange = { ( option : { value : Frameworks } ) => setSelectedFramework ( option . value ) }
64
64
/>
65
- < StyledP > { t ( 'Install requirements in your terminal:' ) } </ StyledP >
65
+ < StyledInstruction >
66
+ { t ( 'Install requirements in your terminal:' ) }
67
+ </ StyledInstruction >
66
68
< CodeSnippet dark language = "bash" >
67
69
{ INSTALL_REQUIREMENTS_SNIPPETS [ selectedFramework ] }
68
70
</ CodeSnippet >
69
- { GENERATE_FILE_SNIPPETS [ selectedFramework ] ? (
71
+ { selectedFramework === 'pytest' ? (
70
72
< Fragment >
71
- < StyledP >
73
+ < StyledInstruction >
72
74
{ t ( 'Generate a JUnit XML file that contains the results of your test run.' ) }
73
- </ StyledP >
75
+ </ StyledInstruction >
74
76
< CodeSnippet dark language = "bash" >
75
- { GENERATE_FILE_SNIPPETS [ selectedFramework ] }
77
+ { GENERATE_FILE_SNIPPETS . pytest }
76
78
</ CodeSnippet >
77
79
</ Fragment >
78
80
) : null }
@@ -86,6 +88,6 @@ const StyledSelectControl = styled(Select)`
86
88
margin-bottom: ${ space ( 1.5 ) } ;
87
89
` ;
88
90
89
- const StyledP = styled ( 'p' ) `
91
+ const StyledInstruction = styled ( 'p' ) `
90
92
margin: ${ space ( 1.5 ) } 0;
91
93
` ;
You can’t perform that action at this time.
0 commit comments