diff --git a/e2e/console/cookie_banner_test.go b/e2e/console/cookie_banner_test.go index 826a2d945..de3a2b751 100644 --- a/e2e/console/cookie_banner_test.go +++ b/e2e/console/cookie_banner_test.go @@ -198,7 +198,7 @@ func TestCookieBanner_Create(t *testing.T) { kinds[e.Node.Kind] = true } assert.True(t, kinds["NECESSARY"], "should have a NECESSARY category") - assert.True(t, kinds["UNCATEGORISED"], "should have an UNCATEGORISED category") + assert.False(t, kinds["UNCATEGORISED"], "consentCategories should not include UNCATEGORISED") }) t.Run("duplicate origin conflict", func(t *testing.T) { diff --git a/e2e/console/cookie_category_test.go b/e2e/console/cookie_category_test.go index a3f0f6e99..275fd1455 100644 --- a/e2e/console/cookie_category_test.go +++ b/e2e/console/cookie_category_test.go @@ -328,14 +328,14 @@ func TestCookieCategory_Delete(t *testing.T) { var listResult struct { Node struct { - ConsentCategories struct { - Edges []struct { - Node struct { - ID string `json:"id"` - Kind string `json:"kind"` - } `json:"node"` - } `json:"edges"` - } `json:"consentCategories"` + ConsentCategories struct { + Edges []struct { + Node struct { + ID string `json:"id"` + Kind string `json:"kind"` + } `json:"node"` + } `json:"edges"` + } `json:"consentCategories"` } `json:"node"` } @@ -440,19 +440,19 @@ func TestCookieCategory_List(t *testing.T) { var result struct { Node struct { - ConsentCategories struct { - TotalCount int `json:"totalCount"` - Edges []struct { - Node struct { - ID string `json:"id"` - Rank int `json:"rank"` - } `json:"node"` - } `json:"edges"` - PageInfo struct { - HasNextPage bool `json:"hasNextPage"` - HasPreviousPage bool `json:"hasPreviousPage"` - } `json:"pageInfo"` - } `json:"consentCategories"` + ConsentCategories struct { + TotalCount int `json:"totalCount"` + Edges []struct { + Node struct { + ID string `json:"id"` + Rank int `json:"rank"` + } `json:"node"` + } `json:"edges"` + PageInfo struct { + HasNextPage bool `json:"hasNextPage"` + HasPreviousPage bool `json:"hasPreviousPage"` + } `json:"pageInfo"` + } `json:"consentCategories"` } `json:"node"` }