aboutsummaryrefslogtreecommitdiffstats
path: root/integrations
diff options
context:
space:
mode:
Diffstat (limited to 'integrations')
-rw-r--r--integrations/compare_test.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/integrations/compare_test.go b/integrations/compare_test.go
index 08468cbfd6..e8efe7cd09 100644
--- a/integrations/compare_test.go
+++ b/integrations/compare_test.go
@@ -6,6 +6,7 @@ package integrations
import (
"net/http"
+ "strings"
"testing"
"github.com/stretchr/testify/assert"
@@ -21,4 +22,8 @@ func TestCompareTag(t *testing.T) {
selection := htmlDoc.doc.Find(".choose.branch .filter.dropdown")
// A dropdown for both base and head.
assert.Lenf(t, selection.Nodes, 2, "The template has changed")
+
+ req = NewRequest(t, "GET", "/user2/repo1/compare/invalid")
+ resp = session.MakeRequest(t, req, http.StatusNotFound)
+ assert.False(t, strings.Contains(resp.Body.String(), "/assets/img/500.png"), "expect 404 page not 500")
}