diff --git a/tests/integration/milestone_test.go b/tests/integration/milestone_test.go
index 6bcf7d7128..2a01786dc0 100644
--- a/tests/integration/milestone_test.go
+++ b/tests/integration/milestone_test.go
@@ -38,5 +38,5 @@ func TestMilestonesCount(t *testing.T) {
 	closedCount := htmlDoc.doc.Find("a[data-test-name='closed-issue-count']").Text()
 	assert.Contains(t, closedCount, "1\u00a0Closed")
 
-	assert.Empty(t, htmlDoc.doc.Find("a[data-test-name='closed-issue-count']").Nodes)
+	assert.Empty(t, htmlDoc.doc.Find("a[data-test-name='allissue-count']").Nodes)
 }