Fix e2e: consentCategories excludes UNCATEGORISED
Signed-off-by: Émile Ré <emile@getprobo.com>
This commit is contained in:
@@ -198,7 +198,7 @@ func TestCookieBanner_Create(t *testing.T) {
|
|||||||
kinds[e.Node.Kind] = true
|
kinds[e.Node.Kind] = true
|
||||||
}
|
}
|
||||||
assert.True(t, kinds["NECESSARY"], "should have a NECESSARY category")
|
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) {
|
t.Run("duplicate origin conflict", func(t *testing.T) {
|
||||||
|
|||||||
@@ -328,14 +328,14 @@ func TestCookieCategory_Delete(t *testing.T) {
|
|||||||
|
|
||||||
var listResult struct {
|
var listResult struct {
|
||||||
Node struct {
|
Node struct {
|
||||||
ConsentCategories struct {
|
ConsentCategories struct {
|
||||||
Edges []struct {
|
Edges []struct {
|
||||||
Node struct {
|
Node struct {
|
||||||
ID string `json:"id"`
|
ID string `json:"id"`
|
||||||
Kind string `json:"kind"`
|
Kind string `json:"kind"`
|
||||||
} `json:"node"`
|
} `json:"node"`
|
||||||
} `json:"edges"`
|
} `json:"edges"`
|
||||||
} `json:"consentCategories"`
|
} `json:"consentCategories"`
|
||||||
} `json:"node"`
|
} `json:"node"`
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -440,19 +440,19 @@ func TestCookieCategory_List(t *testing.T) {
|
|||||||
|
|
||||||
var result struct {
|
var result struct {
|
||||||
Node struct {
|
Node struct {
|
||||||
ConsentCategories struct {
|
ConsentCategories struct {
|
||||||
TotalCount int `json:"totalCount"`
|
TotalCount int `json:"totalCount"`
|
||||||
Edges []struct {
|
Edges []struct {
|
||||||
Node struct {
|
Node struct {
|
||||||
ID string `json:"id"`
|
ID string `json:"id"`
|
||||||
Rank int `json:"rank"`
|
Rank int `json:"rank"`
|
||||||
} `json:"node"`
|
} `json:"node"`
|
||||||
} `json:"edges"`
|
} `json:"edges"`
|
||||||
PageInfo struct {
|
PageInfo struct {
|
||||||
HasNextPage bool `json:"hasNextPage"`
|
HasNextPage bool `json:"hasNextPage"`
|
||||||
HasPreviousPage bool `json:"hasPreviousPage"`
|
HasPreviousPage bool `json:"hasPreviousPage"`
|
||||||
} `json:"pageInfo"`
|
} `json:"pageInfo"`
|
||||||
} `json:"consentCategories"`
|
} `json:"consentCategories"`
|
||||||
} `json:"node"`
|
} `json:"node"`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user