Skip to content

Commit 2559261

Browse files
committed
fix test
1 parent 0af1d75 commit 2559261

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

tests/integration/repo_test.go

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,12 @@ func TestViewRepo(t *testing.T) {
2828
resp := session.MakeRequest(t, req, http.StatusOK)
2929

3030
htmlDoc := NewHTMLParser(t, resp.Body)
31-
repoTopics := htmlDoc.doc.Find("#repo-topics").Children()
31+
repoTopicsDesktop := htmlDoc.doc.Find("#repo-topics-desktop").Children()
32+
repoTopicsMobile := htmlDoc.doc.Find("#repo-topics-mobile").Children()
3233
repoSummary := htmlDoc.doc.Find(".repository-summary").Children()
3334

34-
assert.True(t, repoTopics.HasClass("repo-topic"))
35+
assert.True(t, repoTopicsDesktop.HasClass("repo-topic"))
36+
assert.True(t, repoTopicsMobile.HasClass("repo-topic"))
3537
assert.True(t, repoSummary.HasClass("repository-menu"))
3638

3739
req = NewRequest(t, "GET", "/org3/repo3")

0 commit comments

Comments
 (0)