diff --git a/templates/explore/repo_list.tmpl b/templates/explore/repo_list.tmpl index d7e12930ca..5aca760548 100644 --- a/templates/explore/repo_list.tmpl +++ b/templates/explore/repo_list.tmpl @@ -55,7 +55,7 @@ data-tooltip-content="{{ctx.Locale.TrPluralString .NumForks "fork.n_forks" (ctx.Locale.PrettyNumber .NumForks)}}" {{end}} > - {{svg "octicon-git-branch" 16}} + {{svg "octicon-repo-forked" 16}} {{CountFmt .NumForks}} {{end}} diff --git a/tests/integration/explore_repos_test.go b/tests/integration/explore_repos_test.go index 1ed07248f6..cbf2214183 100644 --- a/tests/integration/explore_repos_test.go +++ b/tests/integration/explore_repos_test.go @@ -24,6 +24,10 @@ func testExploreStarForkCounters(t *testing.T, repoQuery, expectedStars, expecte assert.Equal(t, expectedStars, starsAriaLabel) assert.Equal(t, expectedForks, forksAriaLabel) + + // Verify that correct icons are used + assert.True(t, repoListEntry.Find("a[href$='/stars'] > svg").HasClass("octicon-star")) + assert.True(t, repoListEntry.Find("a[href$='/forks'] > svg").HasClass("octicon-repo-forked")) } func TestExploreRepos(t *testing.T) {