File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -103,11 +103,14 @@ function ProjectComparator() {
103
103
return (
104
104
< >
105
105
< h1 > OpenSSF Scorecard comparator for { `${ org } /${ repo } ` } </ h1 >
106
- < div className = "info-badge__wrapper" >
106
+ < div
107
+ data-testid = "current-score-and-badge"
108
+ className = "info-badge__wrapper"
109
+ >
107
110
< h2 > { `Current Score: ${ currentData . score } /10` } </ h2 >
108
111
{ scoreChecker ( currentData . score , previousData . score ) }
109
112
</ div >
110
- < p >
113
+ < p data-testid = "commits-analysis" >
111
114
Analysis of commits{ " " }
112
115
< a
113
116
href = { `https://github.com/${ org } /${ repo } /commit/${ currentData . repo . commit } ` }
@@ -125,8 +128,8 @@ function ProjectComparator() {
125
128
{ `(${ previousData . repo . commit . substring ( 0 , 8 ) } )` }
126
129
</ a >
127
130
</ p >
128
- < p > Date: { formatDate ( currentData . date ) } </ p >
129
- < p >
131
+ < p data-testid = "date" > Date: { formatDate ( currentData . date ) } </ p >
132
+ < p data-testid = "scorecard-version" >
130
133
Scorecard version { currentData . scorecard . version } { " " }
131
134
< a
132
135
href = { `https://github.com/ossf/scorecard/commit/${ currentData . scorecard . commit } ` }
You can’t perform that action at this time.
0 commit comments